slice_intra_DCT(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture, const int scan[64], int cc,
unsigned x, unsigned y, enum pipe_mpeg12_dct_type coding, int quantizer_scale, int dc_dct_pred[3])
{
- short *dest = bs->ycbcr_buffer[cc];
+ short dest[64];
bs->ycbcr_stream[cc]->x = x;
bs->ycbcr_stream[cc]->y = y;
else
get_intra_block_B14(bs, picture, scan, quantizer_scale, dest);
+ memcpy(bs->ycbcr_buffer[cc], dest, sizeof(int16_t) * 64);
+
bs->num_ycbcr_blocks[cc]++;
bs->ycbcr_stream[cc]++;
bs->ycbcr_buffer[cc] += 64;
slice_non_intra_DCT(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc * picture, const int scan[64], int cc,
unsigned x, unsigned y, int quantizer_scale, enum pipe_mpeg12_dct_type coding)
{
- short *dest = bs->ycbcr_buffer[cc];
+ short dest[64];
bs->ycbcr_stream[cc]->x = x;
bs->ycbcr_stream[cc]->y = y;
else
get_non_intra_block(bs, picture, scan, quantizer_scale, dest);
+ memcpy(bs->ycbcr_buffer[cc], dest, sizeof(int16_t) * 64);
+
bs->num_ycbcr_blocks[cc]++;
bs->ycbcr_stream[cc]++;
bs->ycbcr_buffer[cc] += 64;