[vlc-commits] commit: Workaround non set reordered_opaque value with some FFmpeg codecs. (Laurent Aimar )
git at videolan.org
git at videolan.org
Fri May 21 01:10:11 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May 21 01:07:54 2010 +0200| [5f6359d02ce5962e814cb25916861704d65454c5] | committer: Laurent Aimar
Workaround non set reordered_opaque value with some FFmpeg codecs.
It seems that decoders not using AVContext::get_buffer() do not
initialize AVFrame::reordered_opaque.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f6359d02ce5962e814cb25916861704d65454c5
---
modules/codec/avcodec/video.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 0b8ce63..b0b3a8e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -559,6 +559,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_context->reordered_opaque = (p_block->i_dts << 1) | 1;
else
p_context->reordered_opaque = INT64_MIN;
+ p_sys->p_ff_pic->reordered_opaque = p_context->reordered_opaque;
/* Make sure we don't reuse the same timestamps twice */
p_block->i_pts =
More information about the vlc-commits
mailing list