aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-11 17:40:03 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-13 01:41:26 +0100
commit5aa710f46119bb9c1c38542f80f5338eb8b5ffb2 (patch)
tree72bfa2ea33b48413be06c1ffe7d385922fe46597 /libavcodec
parente9a6ae775dabef3942632e8d4ef95fff94a1b310 (diff)
downloadffmpeg-5aa710f46119bb9c1c38542f80f5338eb8b5ffb2.tar.gz
vorbisenc: add missing parenthesis
Bug-Id: CID 1238791
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vorbisenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c
index 830e5d184f..10c7932322 100644
--- a/libavcodec/vorbisenc.c
+++ b/libavcodec/vorbisenc.c
@@ -1091,11 +1091,12 @@ static int vorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
avpkt->size = put_bits_count(&pb) >> 3;
avpkt->duration = ff_samples_to_time_base(avctx, avctx->frame_size);
- if (frame)
+ if (frame) {
if (frame->pts != AV_NOPTS_VALUE)
avpkt->pts = ff_samples_to_time_base(avctx, frame->pts);
- else
+ } else {
avpkt->pts = venc->next_pts;
+ }
if (avpkt->pts != AV_NOPTS_VALUE)
venc->next_pts = avpkt->pts + avpkt->duration;