diff options
author | Joakim Plate <elupus@ecce.se> | 2011-09-10 23:12:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-21 18:01:20 +0200 |
commit | 92f1b5df320613b5af3e34a634f506524a7aaa2a (patch) | |
tree | 97ff225fa8d429d196d86d959471d34a8c3f8c30 | |
parent | 82e4fd193fe5e9173d081bd244a3b5326bcab01f (diff) | |
download | ffmpeg-92f1b5df320613b5af3e34a634f506524a7aaa2a.tar.gz |
dvbsubdec: don't hardcode subtitle colors count in dvbsubdec to 16
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4a3294ef0069c898a495c783dfdb2f0bf1dc6583)
-rw-r--r-- | libavcodec/dvbsubdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 5b09eb14d6..e43dd29a14 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1360,7 +1360,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, rect->y = display->y_pos + offset_y; rect->w = region->width; rect->h = region->height; - rect->nb_colors = 16; + rect->nb_colors = (1 << region->depth); rect->type = SUBTITLE_BITMAP; rect->pict.linesize[0] = region->width; |