On Mon, 12 Sep 2011 13:57:03 -0400, Justin Ruggles <[email protected]> 
wrote:
> ---
> The previous patch had a bug. At the end of playback it wouldn't 
> allow seeking.
> 
> This updated patch is a little simpler and has better behavior. First of 
> all, it checks for CODEC_CAP_DELAY so that it doesn't send any empty 
> packets at EOF if that capability flag is not set. For decoders that do 
> set CODEC_CAP_DELAY, at the end of playback avplay will loop putting an 
> empty packet in the queue then reading it from the queue. The empty 
> packets will only be sent to the decoder if it still has more samples to 
> send back.
> 
>  avplay.c |   29 +++++++++++++++++++++++------
>  1 files changed, 23 insertions(+), 6 deletions(-)
> 

LGTM

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

Reply via email to