[FFmpeg-devel] [PATCH]Implement Bluray subtitle forcing

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jan 29 17:15:24 CET 2012


On Sun, Jan 29, 2012 at 04:39:41PM +0100, Carl Eugen Hoyos wrote:
> @@ -422,6 +424,7 @@ 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);
>  
> +        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));

Well, I'd be in favour of having some flags in sub->rects, but I think
that would mean an API/ABI change...


More information about the ffmpeg-devel mailing list