[vlc-devel] commit: Fix flickering when decoding TSCC. (Backport if we're doing a 0.9. 10) (Antoine Cellerier )
git version control
git at videolan.org
Mon Apr 6 00:05:34 CEST 2009
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Mon Apr 6 00:06:46 2009 +0200| [d5b26ea0a4df8933aa1bac9de4de8bba255886dc] | committer: Antoine Cellerier
Fix flickering when decoding TSCC. (Backport if we're doing a 0.9.10)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5b26ea0a4df8933aa1bac9de4de8bba255886dc
---
modules/codec/avcodec/video.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 2748d46..91e40ef 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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,
More information about the vlc-devel
mailing list