mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
dvbsub encoder, patch by Wolfram Gloger < wmglo AH dent POIS med POIS uni-muenchen POIS de >
Original thread: Date: 8 Oct 2005 09:35:38 -0000 Subject: [Ffmpeg-devel] [PATCH] dvdsub encoder -- 2nd version Originally committed as revision 4706 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Guillaume Poirier
parent
b2d374c958
commit
689abe56fe
@@ -343,10 +343,10 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
|
||||
for (object_id = 0; object_id < h->num_rects; object_id++) {
|
||||
/* Object Data segment */
|
||||
|
||||
if (h->rects[region_id].nb_colors <= 4) {
|
||||
if (h->rects[object_id].nb_colors <= 4) {
|
||||
/* 2 bpp, some decoders do not support it correctly */
|
||||
bpp_index = 0;
|
||||
} else if (h->rects[region_id].nb_colors <= 16) {
|
||||
} else if (h->rects[object_id].nb_colors <= 16) {
|
||||
/* 4 bpp, standard encoding */
|
||||
bpp_index = 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user