changeset 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 6445be96aaa1
children 2cc65fb72572
files dvdsubdec.c xsubdec.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }
         }
--- 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;