Mercurial > mplayer.hg
comparison spudec.c @ 31630:78260a246393
10l, also assign the original width in spudec_new_scaled.
author | reimar |
---|---|
date | Sun, 11 Jul 2010 09:39:06 +0000 |
parents | 82958b5ad419 |
children | 67f2fb3ff4c7 |
comparison
equal
deleted
inserted
replaced
31629:82958b5ad419 | 31630:78260a246393 |
---|---|
1226 void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigned int frame_height, uint8_t *extradata, int extradata_len) | 1226 void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigned int frame_height, uint8_t *extradata, int extradata_len) |
1227 { | 1227 { |
1228 spudec_handle_t *this = calloc(1, sizeof(spudec_handle_t)); | 1228 spudec_handle_t *this = calloc(1, sizeof(spudec_handle_t)); |
1229 if (this){ | 1229 if (this){ |
1230 this->orig_frame_height = frame_height; | 1230 this->orig_frame_height = frame_height; |
1231 this->orig_frame_width = frame_width; | |
1231 // set up palette: | 1232 // set up palette: |
1232 if (palette) | 1233 if (palette) |
1233 memcpy(this->global_palette, palette, sizeof(this->global_palette)); | 1234 memcpy(this->global_palette, palette, sizeof(this->global_palette)); |
1234 else | 1235 else |
1235 this->auto_palette = 1; | 1236 this->auto_palette = 1; |