On Fri, 16 Sep 2011 22:52:28 -0400, Justin Ruggles <[email protected]> 
wrote:
> ---
> Well, I hate to do this... but I found a weird situation where my 
> previous patch did not work. Some audio decoders (e.g. shorten) buffer 
> input data internally. When that happens they will consume all input 
> data but sometimes not output any frames. With the previous patch this 
> made it look like the decoder was done decoding when it really was not. 
> The updated patch checks that the packet that was sent was really empty.
> 
> There are not any audio codecs that do this and also set 
> CODEC_CAP_DELAY, but there will be after I send some patches later to 
> make the shorten decoder flush its internal buffer, making it actually 
> lossless. Right now it sometimes cuts off samples at the end.
> 
>  avplay.c |   29 +++++++++++++++++++++++------
>  1 files changed, 23 insertions(+), 6 deletions(-)
> 

Feel free to push, let's see if it breaks anything ;)


-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to