[FFmpeg-cvslog] avcodec/tdsc: return the packet size instead of 0
Michael Niedermayer
git at videolan.org
Thu Dec 15 23:30:07 EET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Dec 15 20:09:48 2016 +0100| [0888c5a24273be1d449ec5f6ee216567d846a4a4] | committer: Michael Niedermayer
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 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0888c5a24273be1d449ec5f6ee216567d846a4a4
---
libavcodec/tdsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c
index d1265a0..8460568 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 = {
More information about the ffmpeg-cvslog
mailing list