diff xsubdec.c @ 9988:b8a9cfe64488 libavcodec

Set subtitle type in DVD and XSUB subtitle decoders. Patch by Janne Grunau <ja?ne-f?mpeg jannau net>.
author stefano
date Sun, 26 Jul 2009 23:08:04 +0000
parents 0dce4fe6e6f3
children b8313eb3dca8
line wrap: on
line diff
--- 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;