summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/adx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/adx.c')
-rw-r--r--src/libffmpeg/libavcodec/adx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libffmpeg/libavcodec/adx.c b/src/libffmpeg/libavcodec/adx.c
index 4fdca49e8..e41a75726 100644
--- a/src/libffmpeg/libavcodec/adx.c
+++ b/src/libffmpeg/libavcodec/adx.c
@@ -199,7 +199,7 @@ static int adx_encode_init(AVCodecContext *avctx)
// avctx->bit_rate = avctx->sample_rate*avctx->channels*18*8/32;
- printf("adx encode init\n"); fflush(stdout);
+ av_log(avctx, AV_LOG_DEBUG, "adx encode init\n");
adx_decode_init(avctx);
return 0;
@@ -213,7 +213,7 @@ static int adx_encode_close(AVCodecContext *avctx)
}
static int adx_encode_frame(AVCodecContext *avctx,
- unsigned char *frame, int buf_size, const void *data)
+ uint8_t *frame, int buf_size, void *data)
{
ADXContext *c = avctx->priv_data;
const short *samples = data;
@@ -318,15 +318,15 @@ static void dump(unsigned char *buf,size_t len)
{
int i;
for(i=0;i<len;i++) {
- if ((i&15)==0) printf("%04x ",i);
- printf("%02x ",buf[i]);
- if ((i&15)==15) printf("\n");
+ if ((i&15)==0) av_log(NULL, AV_LOG_DEBUG, "%04x ",i);
+ av_log(NULL, AV_LOG_DEBUG, "%02x ",buf[i]);
+ if ((i&15)==15) av_log(NULL, AV_LOG_DEBUG, "\n");
}
- printf("\n");
+ av_log(NULL, AV_LOG_ERROR, "\n");
}
static int adx_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- const uint8_t *buf0, int buf_size)
+ uint8_t *buf0, int buf_size)
{
ADXContext *c = avctx->priv_data;
short *samples = data;