[vlc-commits] avcodec: remove unused code

Rémi Denis-Courmont git at videolan.org
Thu Apr 23 17:38:34 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 22 23:14:07 2015 +0300| [471847d99956ba6adc7a06c3cbc24f1820181d24] | committer: Rémi Denis-Courmont

avcodec: remove unused code

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

 modules/codec/avcodec/video.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 71f8fbf..4e5e4d5 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1123,13 +1123,6 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
     if (!can_hwaccel)
         goto end;
 
-    /* Profile and level information is needed now.
-     * TODO: avoid code duplication with avcodec.c */
-    if( p_context->profile != FF_PROFILE_UNKNOWN)
-        p_dec->fmt_in.i_profile = p_context->profile;
-    if( p_context->level != FF_LEVEL_UNKNOWN)
-        p_dec->fmt_in.i_level = p_context->level;
-
     p_va = vlc_va_New( VLC_OBJECT(p_dec), p_context, &p_dec->fmt_in );
     if( p_va == NULL )
         goto end;



More information about the vlc-commits mailing list