diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-15 20:09:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-15 22:12:12 +0100 |
commit | 0888c5a24273be1d449ec5f6ee216567d846a4a4 (patch) | |
tree | 81289a438e84f5398af2b7385aa975cd611f9675 /libavcodec/tdsc.c | |
parent | 2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3 (diff) | |
download | ffmpeg-0888c5a24273be1d449ec5f6ee216567d846a4a4.tar.gz |
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>
Diffstat (limited to 'libavcodec/tdsc.c')
-rw-r--r-- | libavcodec/tdsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |