diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-02 23:04:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-02 23:04:00 +0200 |
commit | a1acae0409700e1abe62cbc900321fcffc9d971d (patch) | |
tree | b850f25315951c517e5e3cb1d5d92bcdcf08966a /ffmpeg_opt.c | |
parent | f5b26fbc2f564831b337f1de9faaaf6753a03871 (diff) | |
download | ffmpeg-a1acae0409700e1abe62cbc900321fcffc9d971d.tar.gz |
ffmpeg_opt: remove rotate metadata in case of autorotate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index f59b93bba6..a8ee1c328e 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -2184,8 +2184,11 @@ loop_end: continue; ist = input_streams[output_streams[i]->source_index]; av_dict_copy(&output_streams[i]->st->metadata, ist->st->metadata, AV_DICT_DONT_OVERWRITE); - if (!output_streams[i]->stream_copy) + if (!output_streams[i]->stream_copy) { av_dict_set(&output_streams[i]->st->metadata, "encoder", NULL, 0); + if (ist->autorotate) + av_dict_set(&output_streams[i]->st->metadata, "rotate", NULL, 0); + } } /* process manually set metadata */ |