diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-03-21 13:46:43 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-03-21 13:46:43 +0300 |
commit | b4da4307a91e477e98f62498590a5dafb9d08204 (patch) | |
tree | 2a99f485ca1d0b730fe96a642bbcd0a5082e0bc0 /libavcodec/fmvc.c | |
parent | fa8db3f5975e4729bde7034315e9512367c0fdd0 (diff) |
avcodec/fmvc: small refactoring in decode_type1()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/fmvc.c')
-rw-r--r-- | libavcodec/fmvc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c index 9c452da351..1f8b0c5c17 100644 --- a/libavcodec/fmvc.c +++ b/libavcodec/fmvc.c @@ -380,18 +380,14 @@ static int decode_type1(GetByteContext *gb, PutByteContext *pb) bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); - do { - bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); - --len; - } while (len && bytestream2_get_bytes_left(&gbc) > 0); } else { bytestream2_put_le32(pb, bytestream2_get_le32(&gbc)); len--; - do { - bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); - len--; - } while (len && bytestream2_get_bytes_left(&gbc) > 0); } + do { + bytestream2_put_byte(pb, bytestream2_get_byte(&gbc)); + len--; + } while (len && bytestream2_get_bytes_left(&gbc) > 0); } return 0; |