sonic: fix warning about incompatible pointer types
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ae03b2141e
commit
89cd95b19c
@ -860,7 +860,7 @@ static int sonic_decode_frame(AVCodecContext *avctx,
|
|||||||
SonicContext *s = avctx->priv_data;
|
SonicContext *s = avctx->priv_data;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
int i, quant, ch, j, ret;
|
int i, quant, ch, j, ret;
|
||||||
short *samples;
|
int16_t *samples;
|
||||||
|
|
||||||
if (buf_size == 0) return 0;
|
if (buf_size == 0) return 0;
|
||||||
|
|
||||||
@ -869,7 +869,7 @@ static int sonic_decode_frame(AVCodecContext *avctx,
|
|||||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
samples = s->frame.data[0];
|
samples = (int16_t *)s->frame.data[0];
|
||||||
|
|
||||||
// av_log(NULL, AV_LOG_INFO, "buf_size: %d\n", buf_size);
|
// av_log(NULL, AV_LOG_INFO, "buf_size: %d\n", buf_size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user