0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

spudec.c: add missing orig_frame_width setting

10l, also assign the original width in spudec_new_scaled.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31696 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-07-11 09:39:06 +00:00 committed by Uoti Urpala
parent ba08c0e690
commit 4a466e9573

View File

@ -1228,6 +1228,7 @@ void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigne
spudec_handle_t *this = calloc(1, sizeof(spudec_handle_t));
if (this){
this->orig_frame_height = frame_height;
this->orig_frame_width = frame_width;
// set up palette:
if (palette)
memcpy(this->global_palette, palette, sizeof(this->global_palette));