[vlc-commits] avcodec: Always output frames
Luca Barbato
git at videolan.org
Sat Dec 28 17:32:30 CET 2013
vlc | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Dec 28 10:15:35 2013 +0100| [42bf7e20804df1f6dc779e4e1b1a9a121040c54f] | committer: Jean-Baptiste Kempf
avcodec: Always output frames
With the introduction of CODEC_FLAG_OUTPUT_CORRUPT incomplete frames
are silently dropped. Enable it to maintain the previous behaviour.
Close #10140
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42bf7e20804df1f6dc779e4e1b1a9a121040c54f
---
modules/codec/avcodec/video.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 543640f..03435fb 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -232,6 +232,11 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
if( var_CreateGetBool( p_dec, "grayscale" ) )
p_sys->p_context->flags |= CODEC_FLAG_GRAY;
+ /* ***** Output always the frames ***** */
+#if LIBAVCODEC_VERSION_CHECK(55, 23, 1, 40, 101)
+ p_sys->p_context->flags |= CODEC_FLAG_OUTPUT_CORRUPT;
+#endif
+
i_val = var_CreateGetInteger( p_dec, "avcodec-vismv" );
if( i_val ) p_sys->p_context->debug_mv = i_val;
More information about the vlc-commits
mailing list