diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2005-11-14 22:17:29 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2005-11-14 22:17:29 +0000 |
commit | 689abe56fe2d6746fdfa84bf269a1d1f5a7a1d1d (patch) | |
tree | 395cf91fa6c410dd7f242b26a84693a54810b08d /libavcodec/dvbsub.c | |
parent | b2d374c9587e48b9861e346bce4b12d96308c78d (diff) | |
download | ffmpeg-689abe56fe2d6746fdfa84bf269a1d1f5a7a1d1d.tar.gz |
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
Diffstat (limited to 'libavcodec/dvbsub.c')
-rw-r--r-- | libavcodec/dvbsub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c index 8efe8b2f98..d85836b8b6 100644 --- a/libavcodec/dvbsub.c +++ b/libavcodec/dvbsub.c @@ -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 { |