[FFmpeg-cvslog] ffmpeg: drop obsolete rotation API remnants

Anton Khirnov git at videolan.org
Tue Nov 23 12:41:19 EET 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Nov 15 16:14:49 2021 +0100| [9dd104f6e263dce770541074d99b5286524f2a8b] | committer: Anton Khirnov

ffmpeg: drop obsolete rotation API remnants

No demuxers export the "rotate" metadata tag anymore.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9dd104f6e263dce770541074d99b5286524f2a8b
---

 fftools/ffmpeg.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 5325353bc9..3761ea0c38 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -3325,11 +3325,6 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame)
 
     set_encoder_id(output_files[ost->file_index], ost);
 
-    // Muxers use AV_PKT_DATA_DISPLAYMATRIX to signal rotation. On the other
-    // hand, the legacy API makes demuxers set "rotate" metadata entries,
-    // which have to be filtered out to prevent leaking them to output files.
-    av_dict_set(&ost->st->metadata, "rotate", NULL, 0);
-
     if (ist) {
         dec_ctx = ist->dec_ctx;
     }



More information about the ffmpeg-cvslog mailing list