Let received iso header be big endian, to be consistent.

git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@54 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
aeb 2001-02-27 23:44:08 +00:00
parent 6fc01c2077
commit 900ef48d4a
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#include <config.h> #include <config.h>
#include <unistd.h> #include <unistd.h>
#include <byteswap.h>
#include "raw1394.h" #include "raw1394.h"
#include "kernel-raw1394.h" #include "kernel-raw1394.h"
@ -46,7 +47,7 @@ int raw1394_loop_iterate(struct raw1394_handle *handle)
case RAW1394_REQ_ISO_RECEIVE: case RAW1394_REQ_ISO_RECEIVE:
channel = (handle->buffer[0] >> 8) & 0x3f; channel = (handle->buffer[0] >> 8) & 0x3f;
#ifndef WORDS_BIGENDIAN #ifndef WORDS_BIGENDIAN
/* swap(buffer[0]); */ handle->buffer[0] = bswap_32(handle->buffer[0]);
#endif #endif
if (handle->iso_handler[channel]) { if (handle->iso_handler[channel]) {