[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:27:06 CEST 2010
vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May 21 01:24:39 2010 +0200| [a14dadea73c4811411e0050e21148167f25ec500] | 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.
It is doing the same as [5f6359d02ce5962e814cb25916861704d65454c5] from
vlc master.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=a14dadea73c4811411e0050e21148167f25ec500
---
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 40cbce7..230010d 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -541,6 +541,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
int i_used, b_gotpicture;
picture_t *p_pic;
+ p_sys->p_ff_pic->pts = p_sys->input_pts;
i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic,
&b_gotpicture,
p_block->i_buffer <= 0 && p_sys->b_flush ? NULL : p_block->p_buffer, p_block->i_buffer );
More information about the vlc-commits
mailing list