From 0888c5a24273be1d449ec5f6ee216567d846a4a4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 Dec 2016 20:09:48 +0100 Subject: avcodec/tdsc: return the packet size instead of 0 Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/tdsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/tdsc.c') diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index d1265a006d..8460568d7d 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -609,7 +609,7 @@ static int tdsc_decode_frame(AVCodecContext *avctx, void *data, } *got_frame = 1; - return 0; + return avpkt->size; } AVCodec ff_tdsc_decoder = { -- cgit v1.2.3