diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 03:02:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-25 16:35:24 +0200 |
commit | bdd2f7c7a7610e09c203b9eefcf1b06b7fc1633f (patch) | |
tree | 8d003afa83a9d1fd1401b3690634c3d275987a11 /libavcodec | |
parent | 332777970c8b430cd29cb945855c4cc3f20946ee (diff) | |
download | ffmpeg-bdd2f7c7a7610e09c203b9eefcf1b06b7fc1633f.tar.gz |
avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 19e66c7232d96e4ae8f05b52da2b84dfaa4e4da3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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 d7fded813f..d37a254f1e 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -351,7 +351,8 @@ static int oggvorbis_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); |