[vlc-commits] avcodec: Always output frames
Luca Barbato
git at videolan.org
Sat Dec 28 17:34:38 CET 2013
vlc/vlc-2.1 | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Dec 28 10:15:35 2013 +0100| [ee44b0d8b7775856905ab168167cd05392f17259] | 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>
(cherry picked from commit 42bf7e20804df1f6dc779e4e1b1a9a121040c54f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=ee44b0d8b7775856905ab168167cd05392f17259
---
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 2fd48af..0d8c42b 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -217,6 +217,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