Message ID | 20161215202113.20807-3-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 0888c5a24273be1d449ec5f6ee216567d846a4a4 |
Headers | show |
On 12/15/16, Michael Niedermayer <michael@niedermayer.cc> wrote: > Most decoders return the amount of data used. > This is more consistent > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/tdsc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > lgtm
On Thu, Dec 15, 2016 at 09:37:35PM +0100, Paul B Mahol wrote: > On 12/15/16, Michael Niedermayer <michael@niedermayer.cc> wrote: > > Most decoders return the amount of data used. > > This is more consistent > > > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > > --- > > libavcodec/tdsc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > lgtm applied thx [...]
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 = {
Most decoders return the amount of data used. This is more consistent Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/tdsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)