From fe2a390351727cb5ae264588293f8bd7d6d5198e Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 28 Sep 2004 18:49:38 +0000 Subject: xxmc patch by Thomas Hellstrom (with some changes) there is still some work to do, please report any breakages. note: new xxmc driver tested with both nvidia and via libraries. CVS patchset: 7007 CVS date: 2004/09/28 18:49:38 --- src/libmpeg2/header.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libmpeg2/header.c') diff --git a/src/libmpeg2/header.c b/src/libmpeg2/header.c index 0f10588b0..e435fb405 100644 --- a/src/libmpeg2/header.c +++ b/src/libmpeg2/header.c @@ -104,6 +104,8 @@ static uint32_t get_bits(uint8_t *buffer, uint32_t count, uint32_t *bit_position void mpeg2_header_state_init (picture_t * picture) { picture->scan = mpeg2_scan_norm; + picture->load_intra_quantizer_matrix = 1; + picture->load_non_intra_quantizer_matrix = 1; } int mpeg2_header_sequence (picture_t * picture, uint8_t * buffer) @@ -150,7 +152,8 @@ int mpeg2_header_sequence (picture_t * picture, uint8_t * buffer) else for (i = 0; i < 64; i++) picture->non_intra_quantizer_matrix[i] = 16; - + picture->load_intra_quantizer_matrix = 1; + picture->load_non_intra_quantizer_matrix = 1; /* MPEG1 - for testing only */ picture->mpeg1 = 1; picture->intra_dc_precision = 0; -- cgit v1.2.3