Commit c62beba4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rscc: return the packet size instead of 0

Most decoders return the amount of data used.
This is more consistent
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 745f4bcc
......@@ -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;
......
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