From 5959a29893fd7d807ab284c2670f43037b6059dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Wed, 7 Feb 2007 17:35:36 +0000 Subject: [PATCH] Fix incorrect use of ff_get_fourcc that made mjpgb not play on big endian. Fixes bug 739. Originally committed as revision 7875 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 1dc66b742..fa2c8b93d 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -2249,7 +2249,7 @@ read_header: skip_bits(&hgb, 32); /* reserved zeros */ - if (get_bits_long(&hgb, 32) != be2me_32(ff_get_fourcc("mjpg"))) + if (get_bits_long(&hgb, 32) != MKBETAG('m','j','p','g')) { dprintf("not mjpeg-b (bad fourcc)\n"); return 0; -- 2.11.0