[FFmpeg-cvslog] avformat/ffmdec: Add {} to nested if/else
Michael Niedermayer
git at videolan.org
Sun Jan 3 16:10:01 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jan 3 15:47:23 2016 +0100| [97c162add7f33f4f8c82b1f873830d96e04ab06a] | committer: Michael Niedermayer
avformat/ffmdec: Add {} to nested if/else
This preempts potential bugs if this is changed and the indention
ends up different from C interpretation
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97c162add7f33f4f8c82b1f873830d96e04ab06a
---
libavformat/ffmdec.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 7f31d14..ecb4229 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -100,11 +100,12 @@ static int ffm_read_data(AVFormatContext *s,
if (len > size)
len = size;
if (len == 0) {
- if (avio_tell(pb) == ffm->file_size)
- if (ffm->server_attached)
+ if (avio_tell(pb) == ffm->file_size) {
+ if (ffm->server_attached) {
avio_seek(pb, ffm->packet_size, SEEK_SET);
- else
+ } else
return AVERROR_EOF;
+ }
retry_read:
if (pb->buffer_size != ffm->packet_size) {
int64_t tell = avio_tell(pb);
More information about the ffmpeg-cvslog
mailing list