]> git.sesse.net Git - vlc/commitdiff
Fix flickering when decoding TSCC. (Backport if we're doing a 0.9.10)
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 5 Apr 2009 22:06:46 +0000 (00:06 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 5 Apr 2009 22:07:17 +0000 (00:07 +0200)
modules/codec/avcodec/video.c

index 2748d46bd6664a64686695ea3f80af67cc6c1d54..91e40ef8299a8fc70481d033880db62955cd42f5 100644 (file)
@@ -292,6 +292,8 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
         p_sys->p_context->pix_fmt != PIX_FMT_YUV422P &&
         /* H264 uses too many reference frames */
         p_sys->i_codec_id != CODEC_ID_H264 &&
+        /* No idea why ... but this fixes flickering on some TSCC streams */
+        p_sys->i_codec_id != CODEC_ID_TSCC &&
         !p_sys->p_context->debug_mv )
     {
         /* Some codecs set pix_fmt only after the 1st frame has been decoded,