diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-25 14:35:12 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-25 14:35:12 +0000 |
commit | 853a0fcccedb2c66cd7596d4f22f7550d0545686 (patch) | |
tree | 221513e242e6394cf7b26377e704196c2f142c5a | |
parent | 3aa13da97000ec921fb9a7eeb65fde143f3b482b (diff) | |
download | ffmpeg-853a0fcccedb2c66cd7596d4f22f7550d0545686.tar.gz |
Cosmetics: fix indentation and remove a useless else.
Originally committed as revision 24495 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/aviobuf.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 0ee04b0c64..2a96f5aaa3 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -392,20 +392,18 @@ int get_byte(ByteIOContext *s) { if (s->buf_ptr >= s->buf_end) fill_buffer(s); - if (s->buf_ptr < s->buf_end) - return *s->buf_ptr++; - else - return 0; + if (s->buf_ptr < s->buf_end) + return *s->buf_ptr++; + return 0; } int url_fgetc(ByteIOContext *s) { if (s->buf_ptr >= s->buf_end) fill_buffer(s); - if (s->buf_ptr < s->buf_end) - return *s->buf_ptr++; - else - return URL_EOF; + if (s->buf_ptr < s->buf_end) + return *s->buf_ptr++; + return URL_EOF; } int get_buffer(ByteIOContext *s, unsigned char *buf, int size) |