You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libavcodec/vorbisenc: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1087,10 +1087,10 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, AVPacket *avpkt,
|
|||||||
avpkt->size = put_bits_count(&pb) >> 3;
|
avpkt->size = put_bits_count(&pb) >> 3;
|
||||||
|
|
||||||
avpkt->duration = ff_samples_to_time_base(avccontext, avccontext->frame_size);
|
avpkt->duration = ff_samples_to_time_base(avccontext, avccontext->frame_size);
|
||||||
if (frame)
|
if (frame) {
|
||||||
if (frame->pts != AV_NOPTS_VALUE)
|
if (frame->pts != AV_NOPTS_VALUE)
|
||||||
avpkt->pts = ff_samples_to_time_base(avccontext, frame->pts);
|
avpkt->pts = ff_samples_to_time_base(avccontext, frame->pts);
|
||||||
else
|
} else
|
||||||
avpkt->pts = venc->next_pts;
|
avpkt->pts = venc->next_pts;
|
||||||
if (avpkt->pts != AV_NOPTS_VALUE)
|
if (avpkt->pts != AV_NOPTS_VALUE)
|
||||||
venc->next_pts = avpkt->pts + avpkt->duration;
|
venc->next_pts = avpkt->pts + avpkt->duration;
|
||||||
|
Reference in New Issue
Block a user