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

Rémi Denis-Courmont remi at remlab.net
Sat Sep 19 11:22:59 CEST 2009


	Hello,

Le jeudi 17 septembre 2009 02:23:09 Baptiste Coudurier, vous avez écrit :
> I believe AVFMT_NOFILE code was added to avoid libavformat opening any
> underlying stream.

Yes. Except it was not added, it's been there ever since the avformat plugin 
existed.

> 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.

How come does the removal of AVFMT_NOFILE fixes a bug when it is supposed to 
make no differences?

Does it not affect av_find_stream_info() ?

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list