summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-04-29 17:59:01 +0300
committerMartin Storsjö <martin@martin.st>2015-05-02 22:09:06 +0300
commit16302246b1fcb7ad4e6f7bd31c49956a455336d2 (patch)
treec5c5a29b3f25d02b7e56cf0aa2bc679a07ac5d2d /avconv.c
parente2d50fc2f5f3600e13055acf1a10fec35e941f37 (diff)
avconv: Add an option for automatically rotating video according to display matrix
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ö <martin@martin.st>
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 2 insertions, 0 deletions
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)