[vlc-commits] avcodec: video: add default handling for skip_loop_filter

Ilkka Ollakka git at videolan.org
Wed Sep 7 11:16:44 CEST 2016


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Aug 26 12:51:50 2016 +0300| [5b9d18314f01fbd071c41ca76cfb3d4392ab3cd2] | committer: Ilkka Ollakka

avcodec: video: add default handling for skip_loop_filter

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

 modules/codec/avcodec/video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index b2f513e..7fb94a9 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -420,6 +420,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
     else if( i_val == 3 ) p_context->skip_loop_filter = AVDISCARD_NONKEY;
     else if( i_val == 2 ) p_context->skip_loop_filter = AVDISCARD_BIDIR;
     else if( i_val == 1 ) p_context->skip_loop_filter = AVDISCARD_NONREF;
+    else p_context->skip_loop_filter = AVDISCARD_DEFAULT;
 
     if( var_CreateGetBool( p_dec, "avcodec-fast" ) )
         p_context->flags2 |= CODEC_FLAG2_FAST;



More information about the vlc-commits mailing list