aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-19 11:26:47 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-20 13:16:23 +0200
commit461f506f7be0ebec9505e78a42a27a7feaeab63f (patch)
tree226b1edcb0a07060d6efd1cfcf34479e496a0b29 /libavcodec/utils.c
parent97f86680eb761bb92878edff06c10b73b75258a8 (diff)
downloadffmpeg-461f506f7be0ebec9505e78a42a27a7feaeab63f.tar.gz
lavc: set best_effort_timestamp for audio too.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 63aa862716..e73d72abba 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)