Add a second metadata compatibility layer, so that metadata that gets
demuxed with new API is automatically converted to the old API, allowing old applications to stay functional. Originally committed as revision 16499 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -485,6 +485,10 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
|
||||
if (pb && !ic->data_offset)
|
||||
ic->data_offset = url_ftell(ic->pb);
|
||||
|
||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
||||
ff_metadata_demux_compat(ic);
|
||||
#endif
|
||||
|
||||
*ic_ptr = ic;
|
||||
return 0;
|
||||
fail:
|
||||
|
Reference in New Issue
Block a user