1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-24 10:21:49 +02:00

flashsv: simplify condition

This commit is contained in:
Diego Biurrun 2011-06-30 01:00:30 +02:00
parent dbf5b95d35
commit 39884ab035

View File

@ -187,9 +187,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_INVALIDDATA;
}
if (size == 0) {
/* no change, don't do anything */
} else {
/* skip unchanged blocks, which have size 0 */
if (size) {
/* decompress block */
int ret = inflateReset(&s->zstream);
if (ret != Z_OK) {