[vlc-commits] commit: Simplification in avcodec. (Laurent Aimar )

git at videolan.org git at videolan.org
Sat Apr 24 15:34:03 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Apr 24 15:30:19 2010 +0200| [7cacee0ccb881a59759273f6d28b6681c4a24aa6] | committer: Laurent Aimar 

Simplification in avcodec.

Reported by ivoire.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cacee0ccb881a59759273f6d28b6681c4a24aa6
---

 modules/codec/avcodec/video.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 425f1c7..e5def0c 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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;
         }



More information about the vlc-commits mailing list