aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-04 17:25:32 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-04 17:25:32 +0000
commitf5d5bc3493c48471cd7ac8c43409511c74e19fd5 (patch)
tree2593e44a46d40667a46bed13c2b0f5fdcd83ae9e
parentb84de51f548aabf478f84dfa38e4d5ca0b0ffe1f (diff)
downloadffmpeg-f5d5bc3493c48471cd7ac8c43409511c74e19fd5.tar.gz
tak: simplify ff_tak_check_crc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/tak.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/tak.c b/libavcodec/tak.c
index 92dc44c2cd..ccf3abf424 100644
--- a/libavcodec/tak.c
+++ b/libavcodec/tak.c
@@ -19,7 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/bswap.h"
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
#include "tak.h"
@@ -97,7 +96,7 @@ int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size)
return AVERROR_INVALIDDATA;
buf_size -= 3;
- CRC = av_bswap32(AV_RL24(buf + buf_size)) >> 8;
+ CRC = AV_RB24(buf + buf_size);
crc = av_crc(crc_24, 0xCE04B7U, buf, buf_size);
if (CRC != crc)
return AVERROR_INVALIDDATA;