avcodec/rscc: return the packet size instead of 0
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Dec 2016 19:09:48 +0000 (20:09 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Dec 2016 21:10:40 +0000 (22:10 +0100)
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>
libavcodec/rscc.c

index d01f05c..f13706c 100644 (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;