avcodec/rscc: return the packet size instead of 0

Most decoders return the amount of data used.
This is more consistent

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-12-15 20:09:48 +01:00
parent 745f4bcc2c
commit c62beba49a
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data,
}
*got_frame = 1;
ret = avpkt->size;
end:
av_free(inflated_tiles);
return ret;