summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-18 00:28:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-18 00:52:36 +0200
commit57e38043def65418333885c7481b197d470af336 (patch)
treead7db8e3a215ef014a7ac07fbe857c8edb7624e3 /ffmpeg.c
parent14c4b2515836811d53bb5696951637537353387f (diff)
downloadffmpeg-streaming-57e38043def65418333885c7481b197d470af336.zip
ffmpeg-streaming-57e38043def65418333885c7481b197d470af336.tar.gz
ffmpeg: Do not copy the display matrix if rotation meta-data is manually added
Fixes Ticket4560 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6fe169a..a89ae39 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2757,9 +2757,13 @@ static int transcode_init(void)
if (!ost->st->side_data)
return AVERROR(ENOMEM);
+ ost->st->nb_side_data = 0;
for (j = 0; j < ist->st->nb_side_data; j++) {
const AVPacketSideData *sd_src = &ist->st->side_data[j];
- AVPacketSideData *sd_dst = &ost->st->side_data[j];
+ AVPacketSideData *sd_dst = &ost->st->side_data[ost->st->nb_side_data];
+
+ if (ost->rotate_overridden && sd_src->type == AV_PKT_DATA_DISPLAYMATRIX)
+ continue;
sd_dst->data = av_malloc(sd_src->size);
if (!sd_dst->data)
OpenPOWER on IntegriCloud