summaryrefslogtreecommitdiff
path: root/libavcodec/truespeech.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-23 13:23:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-23 13:31:26 +0200
commit35bb74900b951dccdc7481e98a00246f59ec2420 (patch)
tree4e1545a104d5d0eb3194d84f9df6318841c39675 /libavcodec/truespeech.c
parent56afbe8dbc6e508ba279bb95db542b940284fa7d (diff)
parentc67b449bebbe0b35c73b203683e77a0a649bc765 (diff)
Merge commit 'c67b449bebbe0b35c73b203683e77a0a649bc765'
* commit 'c67b449bebbe0b35c73b203683e77a0a649bc765': dsputil: Split bswap*_buf() off into a separate context Conflicts: configure libavcodec/4xm.c libavcodec/ac3dec.c libavcodec/ac3dec.h libavcodec/apedec.c libavcodec/eamad.c libavcodec/flacenc.c libavcodec/fraps.c libavcodec/huffyuv.c libavcodec/huffyuvdec.c libavcodec/motionpixels.c libavcodec/truemotion2.c libavcodec/x86/Makefile libavcodec/x86/dsputil_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r--libavcodec/truespeech.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index d3e3b20e91..b00a45fb0e 100644
--- a/libavcodec/truespeech.c
+++ b/libavcodec/truespeech.c
@@ -22,7 +22,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
-#include "dsputil.h"
+#include "bswapdsp.h"
#include "get_bits.h"
#include "internal.h"
@@ -36,7 +36,7 @@
* TrueSpeech decoder context
*/
typedef struct {
- DSPContext dsp;
+ BswapDSPContext bdsp;
/* input data */
DECLARE_ALIGNED(16, uint8_t, buffer)[32];
int16_t vector[8]; ///< input vector: 5/5/4/4/4/3/3/3
@@ -70,7 +70,7 @@ static av_cold int truespeech_decode_init(AVCodecContext * avctx)
avctx->channel_layout = AV_CH_LAYOUT_MONO;
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
- ff_dsputil_init(&c->dsp, avctx);
+ ff_bswapdsp_init(&c->bdsp);
return 0;
}
@@ -79,7 +79,7 @@ static void truespeech_read_frame(TSContext *dec, const uint8_t *input)
{
GetBitContext gb;
- dec->dsp.bswap_buf((uint32_t *)dec->buffer, (const uint32_t *)input, 8);
+ dec->bdsp.bswap_buf((uint32_t *) dec->buffer, (const uint32_t *) input, 8);
init_get_bits(&gb, dec->buffer, 32 * 8);
dec->vector[7] = ts_codebook[7][get_bits(&gb, 3)];