Commit b4da4307 authored by Diego Biurrun's avatar Diego Biurrun Committed by Paul B Mahol

avcodec/fmvc: small refactoring in decode_type1()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent fa8db3f5
......@@ -380,19 +380,15 @@ 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);
}
}
return 0;
}
......
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