Author: reimar Date: Wed Sep 29 21:05:13 2010 New Revision: 32410 Log: spudec: support "clear" packets that contain no data but instead clear the screen at a given time. Modified: trunk/spudec.c Modified: trunk/spudec.c ============================================================================== --- trunk/spudec.c Wed Sep 29 20:53:39 2010 (r32409) +++ trunk/spudec.c Wed Sep 29 21:05:13 2010 (r32410) @@ -1367,6 +1367,7 @@ void spudec_set_paletted(void *this, con packet->start_col = x; packet->start_row = y; packet->data_len = 2 * stride * h; + if (packet->data_len) { // size 0 is a special "clear" packet packet->packet = malloc(packet->data_len); img = packet->packet; aimg = packet->packet + stride * h; @@ -1381,6 +1382,7 @@ void spudec_set_paletted(void *this, con } pal2gray_alpha(g8a8_pal, pal_img, pal_stride, img, aimg, stride, w, h); + } packet->start_pts = 0; packet->end_pts = 0x7fffffff; if (pts != MP_NOPTS_VALUE)
participants (1)
-
reimar