]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pgssubdec.c
Fix DCA-XXCH extension scaling for embedded downmixes.
[ffmpeg] / libavcodec / pgssubdec.c
index be0981df7fb9e45de8b54ff88dcdf6a3ef4eeb6e..4fb1e7dc8a70b40837b2dcef3cd1ab53505e4d41 100644 (file)
@@ -423,6 +423,9 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
         sub->rects[rect]->nb_colors    = 256;
         sub->rects[rect]->pict.data[1] = av_mallocz(AVPALETTE_SIZE);
 
+        /* Copy the forced flag */
+        sub->rects[rect]->forced = (ctx->presentation.objects[rect].composition & 0x40) != 0;
+
         if (!ctx->forced_subs_only || ctx->presentation.objects[rect].composition & 0x40)
         memcpy(sub->rects[rect]->pict.data[1], ctx->clut, sub->rects[rect]->nb_colors * sizeof(uint32_t));
     }