[FFmpeg-soc] [soc]: r4973 - spdif/spdif.c

bwolowiec subversion at mplayerhq.hu
Fri Aug 7 10:01:38 CEST 2009


Author: bwolowiec
Date: Fri Aug  7 10:01:38 2009
New Revision: 4973

Log:
Use be2me_32

Modified:
   spdif/spdif.c

Modified: spdif/spdif.c
==============================================================================
--- spdif/spdif.c	Fri Aug  7 07:57:20 2009	(r4972)
+++ spdif/spdif.c	Fri Aug  7 10:01:38 2009	(r4973)
@@ -63,8 +63,7 @@ static int spdif_header_ac3(AVFormatCont
 static int spdif_header_dts(AVFormatContext *s, AVPacket *pkt)
 {
     IEC958Context *ctx = s->priv_data;
-    uint32_t syncword_dts =
-        (pkt->data[0] << 24) | (pkt->data[1] << 16) | (pkt-> data[2] << 8) | pkt->data[3];
+    uint32_t syncword_dts = be2me_32(*(uint32_t *) pkt->data);
     int samples;
 
     switch (syncword_dts) {


More information about the FFmpeg-soc mailing list