[FFmpeg-devel] [PATCH] Exposing forced flag for DVD and PGS subtitles

Joakim Plate elupus at ecce.se
Mon Apr 16 12:45:01 CEST 2012

Erik Miranda <erikmiranda <at> gmail.com> writes:

> This patch adds a "forced" member to the AVSubtitleRect structure and 
> implements setting this flag in the DVD and PGS subtitle decoders, since 
> these are the formats I'm aware of that include such a function. Since 
> this patch changes AVSubtitleRect, it leads to a public API change. As 
> far as I can tell, this is the best method to allow access to this 
> information. Please advise me if otherwise, or if further changes are 
> required as part of changing AVSubtitleRect. I think the libavcodec 
> version would need a bump, correct?

There is already a content dispostion type for forced. That is stream
global thou. So one option would be to duplicate forced subs into a
secondary subtitle stream.

More information about the ffmpeg-devel mailing list