1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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 <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2016-12-15 20:09:48 +01:00
parent 2eebcda10a
commit 0888c5a242

View File

@@ -609,7 +609,7 @@ static int tdsc_decode_frame(AVCodecContext *avctx, void *data,
} }
*got_frame = 1; *got_frame = 1;
return 0; return avpkt->size;
} }
AVCodec ff_tdsc_decoder = { AVCodec ff_tdsc_decoder = {