changeset 4499:40395b1feedb libavcodec

Fix incorrect use of ff_get_fourcc that made mjpgb not play on big endian. Fixes bug 739.
author reimar
date Wed, 07 Feb 2007 17:35:36 +0000
parents 2832b65bd37e
children 18a88f830d1a
files mjpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Wed Feb 07 16:59:10 2007 +0000
+++ b/mjpeg.c	Wed Feb 07 17:35:36 2007 +0000
@@ -2249,7 +2249,7 @@
 
     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;