[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:13:09 CEST 2009
vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Mon Apr 6 00:06:46 2009 +0200| [a0cb1aec45d517d768eccc1a684026ce929e4fcd] | committer: Christophe Mutricy
Fix flickering when decoding TSCC. (Backport if we're doing a 0.9.10)
(cherry picked from commit d5b26ea0a4df8933aa1bac9de4de8bba255886dc)
Signed-off-by: Christophe Mutricy <xtophe at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0cb1aec45d517d768eccc1a684026ce929e4fcd
---
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 3fa837e..0e90b9f 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -301,6 +301,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