From: Anton Khirnov <anton@khirnov.net> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v6 2/2] ffmpeg: Deprecate display rotation override with a metadata key Date: Tue, 04 Oct 2022 10:52:19 +0200 Message-ID: <166487353924.5794.1206954245791109304@lain.khirnov.net> (raw) In-Reply-To: <20220926055753.88407-3-thilo.borgmann@mail.de> Quoting Thilo Borgmann (2022-09-26 07:57:53) > diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c > index f07858333d..3f2409ee28 100644 > --- a/fftools/ffmpeg_opt.c > +++ b/fftools/ffmpeg_opt.c > @@ -2859,16 +2859,26 @@ static void of_add_metadata(AVFormatContext *oc, const OptionsContext *o) > for (int j = 0; j < oc->nb_streams; j++) { > OutputStream *ost = output_streams[nb_output_streams - oc->nb_streams + j]; > if ((ret = check_stream_specifier(oc, oc->streams[j], stream_spec)) > 0) { > +#if FFMPEG_ROTATION_METADATA > if (!strcmp(o->metadata[i].u.str, "rotate")) { > char *tail; > double theta = av_strtod(val, &tail); > if (!*tail) { > ost->rotate_overridden = 1; > ost->rotate_override_value = theta; > + > + av_log(NULL, AV_LOG_WARNING, > + "Conversion of a 'rotate' metadata key to a " > + "proper display matrix rotation is deprecated. " Also, the user has no idea what a "proper display matrix rotation" is. Make it something like "Using 'rotate' metadata to specify rotation is deprecated. > + "See -display_rotation for setting rotation " > + "instead."); Missing newline. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2022-10-04 8:52 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-26 5:57 [FFmpeg-devel] [PATCH v6 0/2] ffmpeg: Add display_{rotation, hflip, vflip} options Thilo Borgmann 2022-09-26 5:57 ` [FFmpeg-devel] [PATCH v6 1/2] " Thilo Borgmann 2022-10-04 8:44 ` Anton Khirnov 2022-10-15 10:27 ` Thilo Borgmann 2022-10-17 13:01 ` Anton Khirnov 2022-09-26 5:57 ` [FFmpeg-devel] [PATCH v6 2/2] ffmpeg: Deprecate display rotation override with a metadata key Thilo Borgmann 2022-10-04 8:52 ` Anton Khirnov [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=166487353924.5794.1206954245791109304@lain.khirnov.net \ --to=anton@khirnov.net \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git