[FFmpeg-devel] [PATCH] In av_close_input_stream(), flush the packet queue before to actually close the stream.

Michael Niedermayer michaelni
Wed Jan 5 17:35:05 CET 2011


On Tue, Jan 04, 2011 at 07:17:04PM +0100, Stefano Sabatini wrote:
> This way the flushed packets can still reference the still unclosed
> format context.
> 
> In particular this fixes a spurious error issued when closing the
> video4linux2 buffer in mmap_release_buffer(), which tries to access
> the file descriptor of an already closed file.
> ---
>  libavformat/utils.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

patch should be ok if it doesnt cause new valgrind errors in teh reg tests

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110105/361e78dc/attachment.pgp>



More information about the ffmpeg-devel mailing list