summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/A17-mkv-rawvideo.patch
blob: 77430fe09051e696d41b5d68399dc385b3ce6144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 2469f85d5b6d981f891e697dec82e87f169347ba Mon Sep 17 00:00:00 2001
From: John Stebbins <stebbins@jetheaddev.com>
Date: Wed, 1 Mar 2017 07:57:44 -0700
Subject: [PATCH] matroskadec: fix endianness fourcc and codec_tag

This fixes decode of rawvideo in matroska.
---
 libavformat/matroskadec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 4e121b6..75cfa85 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1612,6 +1612,7 @@ static int matroska_parse_tracks(AVFormatContext *s)
                 track->video.display_width = track->video.pixel_width;
             if (!track->video.display_height)
                 track->video.display_height = track->video.pixel_height;
+            track->video.fourcc = av_bswap32(track->video.fourcc);
         } else if (track->type == MATROSKA_TRACK_TYPE_AUDIO) {
             if (!track->audio.out_samplerate)
                 track->audio.out_samplerate = track->audio.samplerate;
-- 
2.9.3