diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 03:02:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 03:02:06 +0200 |
commit | 19e66c7232d96e4ae8f05b52da2b84dfaa4e4da3 (patch) | |
tree | ad8760c74969853ed459e05c049d2fe0fdf02ee9 | |
parent | ca2fd25988d3789bf84d29713e1c505127101ffa (diff) | |
download | ffmpeg-19e66c7232d96e4ae8f05b52da2b84dfaa4e4da3.tar.gz |
avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libvorbisenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 32465db906..ed6baa90d3 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -349,7 +349,8 @@ static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, avctx->delay = duration; av_assert0(!s->afq.remaining_delay); s->afq.frames->duration += duration; - s->afq.frames->pts -= duration; + if (s->afq.frames->pts != AV_NOPTS_VALUE) + s->afq.frames->pts -= duration; s->afq.remaining_samples += duration; } ff_af_queue_remove(&s->afq, duration, &avpkt->pts, &avpkt->duration); |