1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

don't trigger metadata compatibility code when user app already set metadata

using new API

Originally committed as revision 17608 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2009-02-26 13:00:13 +00:00
parent e34a5996b9
commit ed118841ea

View File

@ -118,6 +118,9 @@ void ff_metadata_mux_compat(AVFormatContext *ctx)
{ {
int i; int i;
if (ctx->metadata && ctx->metadata->count > 0)
return;
FILL_METADATA_STR(ctx, title); FILL_METADATA_STR(ctx, title);
FILL_METADATA_STR(ctx, author); FILL_METADATA_STR(ctx, author);
FILL_METADATA_STR(ctx, copyright); FILL_METADATA_STR(ctx, copyright);