mirror of https://git.ffmpeg.org/ffmpeg.git
Set subtitle type in DVB subtitle decoder.
Patch by Janne Grunau <j?nne-f?mpeg@jannau?net>. Originally committed as revision 19432 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f4c1387249
commit
d6a1611cc2
|
@ -1305,6 +1305,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf,
|
||||||
rect->w = region->width;
|
rect->w = region->width;
|
||||||
rect->h = region->height;
|
rect->h = region->height;
|
||||||
rect->nb_colors = 16;
|
rect->nb_colors = 16;
|
||||||
|
rect->type = SUBTITLE_BITMAP;
|
||||||
rect->pict.linesize[0] = region->width;
|
rect->pict.linesize[0] = region->width;
|
||||||
|
|
||||||
clut = get_clut(ctx, region->clut);
|
clut = get_clut(ctx, region->clut);
|
||||||
|
|
Loading…
Reference in New Issue