Mercurial > libavformat.hg
changeset 6312:b69e2ca7fb3f libavformat
Cosmetics: fix indentation and remove a useless else.
author | reimar |
---|---|
date | Sun, 25 Jul 2010 14:35:12 +0000 |
parents | daed56aa74bc |
children | 21797713c770 |
files | aviobuf.c |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Sun Jul 25 14:33:40 2010 +0000 +++ b/aviobuf.c Sun Jul 25 14:35:12 2010 +0000 @@ -392,20 +392,18 @@ { 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)