[FFmpeg-cvslog] lavc: set best_effort_timestamp for audio too.
Nicolas George
git at videolan.org
Fri Jul 20 13:33:23 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jul 19 11:26:47 2012 +0200| [461f506f7be0ebec9505e78a42a27a7feaeab63f] | committer: Nicolas George
lavc: set best_effort_timestamp for audio too.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=461f506f7be0ebec9505e78a42a27a7feaeab63f
---
libavcodec/utils.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 63aa862..e73d72a 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1640,6 +1640,9 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
if (ret >= 0 && *got_frame_ptr) {
avctx->frame_number++;
frame->pkt_dts = avpkt->dts;
+ frame->best_effort_timestamp = guess_correct_pts(avctx,
+ frame->pkt_pts,
+ frame->pkt_dts);
if (frame->format == AV_SAMPLE_FMT_NONE)
frame->format = avctx->sample_fmt;
if (!frame->channel_layout)
More information about the ffmpeg-cvslog
mailing list