Lines 167-173
static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame,
Link Here
|
167 |
samples *= num_source_channels; |
167 |
samples *= num_source_channels; |
168 |
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { |
168 |
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { |
169 |
#if HAVE_BIGENDIAN |
169 |
#if HAVE_BIGENDIAN |
170 |
bytestream2_get_buffer(&gb, dst16, buf_size); |
170 |
bytestream2_get_buffer(&gb, (uint8_t*)dst16, buf_size); |
171 |
#else |
171 |
#else |
172 |
do { |
172 |
do { |
173 |
*dst16++ = bytestream2_get_be16u(&gb); |
173 |
*dst16++ = bytestream2_get_be16u(&gb); |
Lines 187-193
static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame,
Link Here
|
187 |
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { |
187 |
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { |
188 |
do { |
188 |
do { |
189 |
#if HAVE_BIGENDIAN |
189 |
#if HAVE_BIGENDIAN |
190 |
bytestream2_get_buffer(&gb, dst16, avctx->ch_layout.nb_channels * 2); |
190 |
bytestream2_get_buffer(&gb, (uint8_t*)dst16, avctx->ch_layout.nb_channels * 2); |
191 |
dst16 += avctx->ch_layout.nb_channels; |
191 |
dst16 += avctx->ch_layout.nb_channels; |
192 |
#else |
192 |
#else |
193 |
channel = avctx->ch_layout.nb_channels; |
193 |
channel = avctx->ch_layout.nb_channels; |