[vlc-devel] commit: Removed useless real video code in avcodec. (Laurent Aimar )

git version control git at videolan.org
Sun Dec 14 16:40:10 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 14 16:37:46 2008 +0100| [94086c17556b9a49007150246f9421c3eaa3831a] | committer: Laurent Aimar 

Removed useless real video code in avcodec.

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

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

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index fe44dd5..57fe210 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -766,25 +766,6 @@ static void ffmpeg_InitCodec( decoder_t *p_dec )
             }
         }
     }
-    else if( p_dec->fmt_in.i_codec == VLC_FOURCC( 'R', 'V', '1', '0' ) ||
-             p_dec->fmt_in.i_codec == VLC_FOURCC( 'R', 'V', '1', '3' ) ||
-             p_dec->fmt_in.i_codec == VLC_FOURCC( 'R', 'V', '2', '0' ) )
-    {
-        if( p_dec->fmt_in.i_extra == 8 )
-        {
-            p_sys->p_context->extradata_size = 8;
-            p_sys->p_context->extradata = malloc( 8 );
-            if( p_sys->p_context->extradata )
-            {
-                memcpy( p_sys->p_context->extradata,
-                        p_dec->fmt_in.p_extra, p_dec->fmt_in.i_extra );
-                p_sys->p_context->sub_id = ((uint32_t*)p_dec->fmt_in.p_extra)[1];
-
-                msg_Warn( p_dec, "using extra data for RV codec sub_id=%08x",
-                          p_sys->p_context->sub_id );
-            }
-        }
-    }
     else
     {
         p_sys->p_context->extradata_size = i_size;




More information about the vlc-devel mailing list