diff mbox

[FFmpeg-devel,1/7] avcodec/rscc: return the packet size instead of 0

Message ID 20161215202113.20807-1-michael@niedermayer.cc
State Accepted
Commit c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a
Headers show

Commit Message

Michael Niedermayer Dec. 15, 2016, 8:21 p.m. UTC
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(+)

Comments

Paul B Mahol Dec. 15, 2016, 8:36 p.m. UTC | #1
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
Michael Niedermayer Dec. 15, 2016, 9:27 p.m. UTC | #2
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 mbox

Patch

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;