summaryrefslogtreecommitdiff
path: root/libavcodec/cllc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-02-13 17:57:05 +0100
committerDiego Biurrun <diego@biurrun.de>2014-06-22 18:22:31 -0700
commitc67b449bebbe0b35c73b203683e77a0a649bc765 (patch)
treefef2691cbb548198024dbc1461419dfdd9d3fea2 /libavcodec/cllc.c
parent7b9ef8d701c319c26f7d0664fe977e176764c74e (diff)
dsputil: Split bswap*_buf() off into a separate context
Diffstat (limited to 'libavcodec/cllc.c')
-rw-r--r--libavcodec/cllc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c
index 7481251ceb..f081c68612 100644
--- a/libavcodec/cllc.c
+++ b/libavcodec/cllc.c
@@ -23,14 +23,14 @@
#include <inttypes.h>
#include "libavutil/intreadwrite.h"
-#include "dsputil.h"
+#include "bswapdsp.h"
#include "get_bits.h"
#include "avcodec.h"
#include "internal.h"
typedef struct CLLCContext {
- DSPContext dsp;
AVCodecContext *avctx;
+ BswapDSPContext bdsp;
uint8_t *swapped_buf;
int swapped_buf_size;
@@ -391,8 +391,8 @@ static int cllc_decode_frame(AVCodecContext *avctx, void *data,
}
/* bswap16 the buffer since CLLC's bitreader works in 16-bit words */
- ctx->dsp.bswap16_buf((uint16_t *) ctx->swapped_buf, (uint16_t *) src,
- data_size / 2);
+ ctx->bdsp.bswap16_buf((uint16_t *) ctx->swapped_buf, (uint16_t *) src,
+ data_size / 2);
init_get_bits(&gb, ctx->swapped_buf, data_size * 8);
@@ -485,7 +485,7 @@ static av_cold int cllc_decode_init(AVCodecContext *avctx)
ctx->swapped_buf = NULL;
ctx->swapped_buf_size = 0;
- ff_dsputil_init(&ctx->dsp, avctx);
+ ff_bswapdsp_init(&ctx->bdsp);
return 0;
}