Message ID | 20161215202113.20807-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a |
Headers | show |
On 12/15/16, Michael Niedermayer <michael@niedermayer.cc> wrote: > Most decoders return the amount of data used. > This is more consistent > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/rscc.c | 1 + > 1 file changed, 1 insertion(+) > lgtm
On Thu, Dec 15, 2016 at 09:36:35PM +0100, Paul B Mahol wrote: > On 12/15/16, Michael Niedermayer <michael@niedermayer.cc> wrote: > > Most decoders return the amount of data used. > > This is more consistent > > > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > > --- > > libavcodec/rscc.c | 1 + > > 1 file changed, 1 insertion(+) > > > > lgtm applied thx [...]
diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c index d01f05c022..f13706cd75 100644 --- a/libavcodec/rscc.c +++ b/libavcodec/rscc.c @@ -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;
Most decoders return the amount of data used. This is more consistent Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/rscc.c | 1 + 1 file changed, 1 insertion(+)