Commit 0888c5a2 authored by Michael Niedermayer's avatar 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: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2eebcda1
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment