From 2469f85d5b6d981f891e697dec82e87f169347ba Mon Sep 17 00:00:00 2001 From: John Stebbins 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