Add a metadata compatibility layer, so that when a user application set
metadata using old API, it is automatically converted to new API before muxing. Originally committed as revision 16447 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -2501,6 +2501,10 @@ int av_write_header(AVFormatContext *s)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
||||
ff_metadata_sync_compat(s);
|
||||
#endif
|
||||
|
||||
if(s->oformat->write_header){
|
||||
ret = s->oformat->write_header(s);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user