diff dvbsub.c @ 2946:ac94d509884e libavcodec

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
author gpoirier
date Mon, 14 Nov 2005 22:17:29 +0000
parents 95c35706acbb
children ef2149182f1c
line wrap: on
line diff
--- a/dvbsub.c	Sun Nov 13 20:12:33 2005 +0000
+++ b/dvbsub.c	Mon Nov 14 22:17:29 2005 +0000
@@ -343,10 +343,10 @@
         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 {