aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-01 19:22:50 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-01 22:07:04 -0400
commita675d73d574a2b7693aba62285b355fa216c674b (patch)
treecc2e847de04ad897b0124ab452650f86d151393b /libavcodec
parent45eaac02cbb8eb251945d8769a9c81254969528a (diff)
downloadffmpeg-a675d73d574a2b7693aba62285b355fa216c674b.tar.gz
eamad: Use dsputils instead of a custom bswap16_buf
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/eamad.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index ca7439397f..d7e65db927 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -57,13 +57,6 @@ typedef struct MadContext {
int mb_y;
} MadContext;
-static void bswap16_buf(uint16_t *dst, const uint16_t *src, int count)
-{
- int i;
- for (i=0; i<count; i++)
- dst[i] = av_bswap16(src[i]);
-}
-
static av_cold int decode_init(AVCodecContext *avctx)
{
MadContext *s = avctx->priv_data;
@@ -273,7 +266,7 @@ static int decode_frame(AVCodecContext *avctx,
av_fast_malloc(&s->bitstream_buf, &s->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
if (!s->bitstream_buf)
return AVERROR(ENOMEM);
- bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2);
+ s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2);
init_get_bits(&s->gb, s->bitstream_buf, 8*(buf_end-buf));
for (s->mb_y=0; s->mb_y < (avctx->height+15)/16; s->mb_y++)