# HG changeset patch # User stefano # Date 1248649684 0 # Node ID b8a9cfe64488ea72779054b31c2b7f767029e6f4 # Parent 6445be96aaa1a465c2e4527908290aa2ace675fb Set subtitle type in DVD and XSUB subtitle decoders. Patch by Janne Grunau . diff -r 6445be96aaa1 -r b8a9cfe64488 dvdsubdec.c --- a/dvdsubdec.c Sun Jul 26 21:22:57 2009 +0000 +++ b/dvdsubdec.c Sun Jul 26 23:08:04 2009 +0000 @@ -353,6 +353,7 @@ sub_header->rects[0]->y = y1; sub_header->rects[0]->w = w; sub_header->rects[0]->h = h; + sub_header->rects[0]->type = SUBTITLE_BITMAP; sub_header->rects[0]->pict.linesize[0] = w; } } diff -r 6445be96aaa1 -r b8a9cfe64488 xsubdec.c --- a/xsubdec.c Sun Jul 26 21:22:57 2009 +0000 +++ b/xsubdec.c Sun Jul 26 23:08:04 2009 +0000 @@ -91,6 +91,7 @@ av_freep(&sub->rects[0]->pict.data[0]); sub->rects[0]->x = x; sub->rects[0]->y = y; sub->rects[0]->w = w; sub->rects[0]->h = h; + sub->rects[0]->type = SUBTITLE_BITMAP; sub->rects[0]->pict.linesize[0] = w; sub->rects[0]->pict.data[0] = av_malloc(w * h); sub->rects[0]->nb_colors = 4;