File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2954,11 +2954,8 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
2954
2954
av_log (avctx , AV_LOG_INFO , "Single field\n" );
2955
2955
}
2956
2956
2957
- if (s -> picture ) {
2958
- av_frame_free (& s -> picture );
2959
- s -> picture_ptr = NULL ;
2960
- } else if (s -> picture_ptr )
2961
- av_frame_unref (s -> picture_ptr );
2957
+ av_frame_free (& s -> picture );
2958
+ s -> picture_ptr = NULL ;
2962
2959
2963
2960
av_frame_free (& s -> smv_frame );
2964
2961
Original file line number Diff line number Diff line change @@ -47,10 +47,8 @@ typedef struct MXpegDecodeContext {
47
47
static av_cold int mxpeg_decode_end (AVCodecContext * avctx )
48
48
{
49
49
MXpegDecodeContext * s = avctx -> priv_data ;
50
- MJpegDecodeContext * jpg = & s -> jpg ;
51
50
int i ;
52
51
53
- jpg -> picture_ptr = NULL ;
54
52
ff_mjpeg_decode_end (avctx );
55
53
56
54
for (i = 0 ; i < 2 ; ++ i )
You can’t perform that action at this time.
0 commit comments