OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ce9312
)
libavcodec/vorbisenc: add {} to complex ifs
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 21 Oct 2012 15:35:08 +0000
(17:35 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 21 Oct 2012 16:05:22 +0000
(18:05 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vorbisenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/vorbisenc.c
b/libavcodec/vorbisenc.c
index
74d6331
..
33b2577
100644
(file)
--- 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;