Commit 97c162ad authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 962727ac
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment