[FFmpeg-cvslog] vorbisenc: add missing parenthesis
Vittorio Giovara
git at videolan.org
Thu Nov 13 13:41:14 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Nov 11 17:40:03 2014 +0100| [5aa710f46119bb9c1c38542f80f5338eb8b5ffb2] | committer: Vittorio Giovara
vorbisenc: add missing parenthesis
Bug-Id: CID 1238791
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5aa710f46119bb9c1c38542f80f5338eb8b5ffb2
---
libavcodec/vorbisenc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c
index 830e5d1..10c7932 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;
More information about the ffmpeg-cvslog
mailing list