[FFmpeg-devel] [PATCH]Display DVB subtitles if display segment is missing
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Jan 23 19:20:16 CET 2012
On Mon, Jan 23, 2012 at 12:22:48PM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch by Mark Kendall fixes ticket #937.
>
> Please comment, Carl Eugen
> diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
> index e2a804a..71b6dc6 100644
> --- a/libavcodec/dvbsubdec.c
> +++ b/libavcodec/dvbsubdec.c
> @@ -1452,6 +1452,7 @@ static int dvbsub_decode(AVCodecContext *avctx,
> int page_id;
> int segment_length;
> int i;
> + int gotpage = 0, gotregion = 0, gotclut = 0, gotobject = 0, gotdisplay = 0;
A single got_segment and bit masks for each might be a bit nicer.
More information about the ffmpeg-devel
mailing list