diff mbox

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

Message ID 20161215202113.20807-2-michael@niedermayer.cc
State Accepted
Commit 2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3
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/screenpresso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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/screenpresso.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

lgtm
Michael Niedermayer Dec. 15, 2016, 9:28 p.m. UTC | #2
On Thu, Dec 15, 2016 at 09:36:57PM +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/screenpresso.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> 
> lgtm

applied

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/screenpresso.c b/libavcodec/screenpresso.c
index 2fadca46b7..fb8bfd4701 100644
--- a/libavcodec/screenpresso.c
+++ b/libavcodec/screenpresso.c
@@ -179,7 +179,7 @@  static int screenpresso_decode_frame(AVCodecContext *avctx, void *data,
     }
     *got_frame = 1;
 
-    return 0;
+    return avpkt->size;
 }
 
 AVCodec ff_screenpresso_decoder = {