Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 922621
Collapse All | Expand All

(-)a/libavcodec/pcm-bluray.c (-2 / +2 lines)
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;
(-)a/libavcodec/pcm-dvd.c (-1 / +1 lines)
Lines 157-163 static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src, Link Here
157
    switch (avctx->bits_per_coded_sample) {
157
    switch (avctx->bits_per_coded_sample) {
158
    case 16: {
158
    case 16: {
159
#if HAVE_BIGENDIAN
159
#if HAVE_BIGENDIAN
160
        bytestream2_get_buffer(&gb, dst16, blocks * s->block_size);
160
        bytestream2_get_buffer(&gb, (uint8_t*)dst16, blocks * s->block_size);
161
        dst16 += blocks * s->block_size / 2;
161
        dst16 += blocks * s->block_size / 2;
162
#else
162
#else
163
        int samples = blocks * avctx->ch_layout.nb_channels;
163
        int samples = blocks * avctx->ch_layout.nb_channels;
(-)a/libavutil/hwcontext_vaapi.c (-2 / +1 lines)
Lines 1203-1209 static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst, Link Here
1203
1203
1204
    if (!use_prime2 || vas != VA_STATUS_SUCCESS) {
1204
    if (!use_prime2 || vas != VA_STATUS_SUCCESS) {
1205
        int k;
1205
        int k;
1206
        unsigned long buffer_handle;
1206
        size_t buffer_handle;
1207
        VASurfaceAttribExternalBuffers buffer_desc;
1207
        VASurfaceAttribExternalBuffers buffer_desc;
1208
        VASurfaceAttrib buffer_attrs[2] = {
1208
        VASurfaceAttrib buffer_attrs[2] = {
1209
            {
1209
            {
1210
- 

Return to bug 922621