]> git.sesse.net Git - vlc/commitdiff
Don't workaround unknown bugs in external libraries
authorRafaël Carré <funman@videolan.org>
Thu, 5 Jun 2008 13:31:02 +0000 (15:31 +0200)
committerRafaël Carré <funman@videolan.org>
Thu, 5 Jun 2008 13:31:02 +0000 (15:31 +0200)
Better comment them fully, if you are too lazy to report upstream

modules/codec/ffmpeg/video.c

index 3e380bb6a3fe1e10ec7eda726e5eb35efa8a7b43..12391a04384c220c04b5b52af7abdcefef9c37a5 100644 (file)
@@ -963,8 +963,7 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
     p_ff_pic->linesize[2] = p_pic->p[2].i_pitch;
     p_ff_pic->linesize[3] = 0;
 
-    if( p_ff_pic->reference != 0 ||
-        p_sys->i_codec_id == CODEC_ID_H264 /* Bug in libavcodec */ )
+    if( p_ff_pic->reference != 0 )
     {
         p_dec->pf_picture_link( p_dec, p_pic );
     }
@@ -994,8 +993,7 @@ static void ffmpeg_ReleaseFrameBuf( struct AVCodecContext *p_context,
     p_ff_pic->data[2] = NULL;
     p_ff_pic->data[3] = NULL;
 
-    if( p_ff_pic->reference != 0 ||
-        p_dec->p_sys->i_codec_id == CODEC_ID_H264 /* Bug in libavcodec */ )
+    if( p_ff_pic->reference != 0 )
     {
         p_dec->pf_picture_unlink( p_dec, p_pic );
     }