diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-08-02 00:38:10 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-03 00:08:15 +0400 |
commit | 19d40c79123a9ec2d7d7cb47e239579cc1178fe9 (patch) | |
tree | 7c6ce932fdc192c2dd14c2af7517c8aa992bd756 /libavcodec | |
parent | f92a99dae56eab70fd33f8c84f5fe3c7d544e97d (diff) |
eamad: Use dsputils instead of its own bswap16_buf
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/eamad.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index d6839b17ea..87efcd4468 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; @@ -285,7 +278,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); memset((uint8_t*)s->bitstream_buf + (buf_end-buf), 0, FF_INPUT_BUFFER_PADDING_SIZE); init_get_bits(&s->gb, s->bitstream_buf, 8*(buf_end-buf)); |