Most decoders return the amount of data used.
This is more consistent
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/screenpresso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 = {
--
2.11.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel