[vlc-devel] [PATCH] use av_close_input_stream and remove AVFMT_NOFILE hack

Baptiste Coudurier baptiste.coudurier at gmail.com
Thu Sep 17 01:23:09 CEST 2009


Hi guys,

I've noticed some strange behaviour or the seek function when using 
libavformat wrapper.

This patch fixes seek for MXF files in particular.

I believe AVFMT_NOFILE code was added to avoid libavformat opening any 
underlying stream. This should no be necessary when av_open_input_stream 
and av_close_input_stream are used.

This patch therefore change av_close_input_file to av_close_input_stream 
and remove the AVFMT_NOFILE code.

If anyone know any test I should perform to ensure that everything is 
working properly, please tell me.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc_lavf_seek.patch
Type: text/x-patch
Size: 2145 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090916/6ee44e19/attachment.bin>


More information about the vlc-devel mailing list