aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-21 17:35:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-21 18:05:22 +0200
commitf72b735d41f9591452d2efe0987040462b409c2d (patch)
tree9f750935ab57e31aab5fd65fd3dbaee52a3980e6
parent4ce9312d76176c9be82d70856672651ed46b01a5 (diff)
downloadffmpeg-f72b735d41f9591452d2efe0987040462b409c2d.tar.gz
libavcodec/vorbisenc: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vorbisenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c
index 74d6331ee3..33b2577d96 100644
--- a/libavcodec/vorbisenc.c
+++ b/libavcodec/vorbisenc.c
@@ -1087,10 +1087,10 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, AVPacket *avpkt,
avpkt->size = put_bits_count(&pb) >> 3;
avpkt->duration = ff_samples_to_time_base(avccontext, avccontext->frame_size);
- if (frame)
+ if (frame) {
if (frame->pts != AV_NOPTS_VALUE)
avpkt->pts = ff_samples_to_time_base(avccontext, frame->pts);
- else
+ } else
avpkt->pts = venc->next_pts;
if (avpkt->pts != AV_NOPTS_VALUE)
venc->next_pts = avpkt->pts + avpkt->duration;