]> git.sesse.net Git - vlc/commitdiff
Simplification in avcodec.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 24 Apr 2010 13:30:19 +0000 (15:30 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 24 Apr 2010 13:30:19 +0000 (15:30 +0200)
Reported by ivoire.

modules/codec/avcodec/video.c

index 425f1c7c29e50d8c215416e84f31020d969227d7..e5def0c5ec04fa227ffe3cfacd4ebb0d0a0ebedd 100644 (file)
@@ -605,14 +605,6 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
         if( !b_drawpicture || ( !p_sys->p_va && !p_sys->p_ff_pic->linesize[0] ) )
         {
             /* Do not display the picture */
-            p_pic = (picture_t *)p_sys->p_ff_pic->opaque;
-            if( !b_drawpicture && p_pic )
-            {
-                if( p_sys->p_ff_pic->opaque )
-                    decoder_LinkPicture( p_dec, p_pic );
-                decoder_DeletePicture( p_dec, p_pic );
-            }
-
             ffmpeg_NextPts( p_dec );
             continue;
         }