mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 10:57:48 +00:00
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:
parent
420169e520
commit
e99f76ab79
4 changed files with 111 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue