Re: [FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve XMA missing samples

2018-10-27 Thread Banana M.
> You can set final number of samples in output frame directly: > frame->nb_samples = X. I was told I shouldn't do that (even though other codecs do it?). I quote: >> No, this is wrong. Codecs don't need to do this manually, this is done by >> libavcodec/decode.c, based on the packet's

Re: [FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve XMA missing samples

2018-10-27 Thread Paul B Mahol
On 10/27/18, bananaman...@gmail.com wrote: > From: bnnm > > Writes missing (delay) samples after EOF. > > Signed-off-by: bnnm > --- > libavcodec/wmaprodec.c | 35 --- > 1 file changed, 32 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/wmaprodec.c

[FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve XMA missing samples

2018-10-26 Thread bananaman255
From: bnnm Writes missing (delay) samples after EOF. Signed-off-by: bnnm --- libavcodec/wmaprodec.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 9439bfa771..d0fa974c80 100644 ---