[FFmpeg-devel] [PATCH] Add flag to drop non-forced subtitle
oliver at fromme.com
Sun Jun 29 23:39:03 CEST 2014
Michael Niedermayer wrote:
> On Sun, Jun 29, 2014 at 05:36:32PM +0200, Oliver Fromme wrote:
> > [...]
> > The problem with dropping rectangles in utils.c is that there
> > might be multiple output streams. The flag ("forced subtitles
> > only") might be set for some output streams, but not for others.
> > So, if we dropped some rectangles from the AVSubtitle structure
> > in utils.c, they will be missing from other output streams that
> > are encoded afterwards.
> You can put the, to be kept rectangles in a new AVSubtitle struct.
Oh, it didn't occur to me to generate an new AVSubtitle struct
in utils.c. Thanks for pointing that out.
I'll give that a try and make a new patch.
``We are all but compressed light'' (Albert Einstein)
More information about the ffmpeg-devel