lavc/dvbsub: Do not fail hard in the region block for 256-colour encoding.

Adds a hunk forgotten in 8a6799d2
This commit is contained in:
JULIAN GARDNER 2017-10-24 22:46:00 +02:00 committed by Carl Eugen Hoyos
parent 3c14547eb7
commit df95f145be

View File

@ -342,6 +342,9 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
} else if (h->rects[region_id]->nb_colors <= 16) {
/* 4 bpp, standard encoding */
bpp_index = 1;
} else if (h->rects[region_id]->nb_colors <= 256) {
/* 8 bpp, standard encoding */
bpp_index = 2;
} else {
return -1;
}