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:
parent
3c14547eb7
commit
df95f145be
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user