From 16302246b1fcb7ad4e6f7bd31c49956a455336d2 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 29 Apr 2015 17:59:01 +0300 Subject: avconv: Add an option for automatically rotating video according to display matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The option is enabled by default, but can be disabled. If this is enabled, such side data isn't copied into the output stream (except when doing stream copy). Signed-off-by: Martin Storsjö --- avconv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'avconv.c') diff --git a/avconv.c b/avconv.c index 1ad6e5e5de..275c3eb268 100644 --- a/avconv.c +++ b/avconv.c @@ -2433,6 +2433,8 @@ static int process_input(void) if (av_packet_get_side_data(&pkt, src_sd->type, NULL)) continue; + if (ist->autorotate && src_sd->type == AV_PKT_DATA_DISPLAYMATRIX) + continue; dst_data = av_packet_new_side_data(&pkt, src_sd->type, src_sd->size); if (!dst_data) -- cgit v1.2.3