mirror of https://git.ffmpeg.org/ffmpeg.git
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@niedermayer.cc>
This commit is contained in:
parent
962727acb4
commit
97c162add7
|
@ -100,11 +100,12 @@ static int ffm_read_data(AVFormatContext *s,
|
||||||
if (len > size)
|
if (len > size)
|
||||||
len = size;
|
len = size;
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
if (avio_tell(pb) == ffm->file_size)
|
if (avio_tell(pb) == ffm->file_size) {
|
||||||
if (ffm->server_attached)
|
if (ffm->server_attached) {
|
||||||
avio_seek(pb, ffm->packet_size, SEEK_SET);
|
avio_seek(pb, ffm->packet_size, SEEK_SET);
|
||||||
else
|
} else
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
}
|
||||||
retry_read:
|
retry_read:
|
||||||
if (pb->buffer_size != ffm->packet_size) {
|
if (pb->buffer_size != ffm->packet_size) {
|
||||||
int64_t tell = avio_tell(pb);
|
int64_t tell = avio_tell(pb);
|
||||||
|
|
Loading…
Reference in New Issue