[FFmpeg-devel] Possible bug in dvbsub.c
Måns Rullgård
mans
Thu Feb 10 18:35:42 CET 2011
Ronen Mizrahi <ronen at tversity.com> writes:
> From 749d700bea42c6b3c6425e458d87f54f77b2c274 Mon Sep 17 00:00:00 2001
> From: Ronen Mizrahi <ronen at tversity.com>
> Date: Thu, 10 Feb 2011 11:50:00 -0500
> Subject: [PATCH] Fix bug in dvbsub related to incorrect bit placement of the object version
>
> ---
> libavcodec/dvbsub.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c
> index c2a1298..ed12823 100644
> --- a/libavcodec/dvbsub.c
> +++ b/libavcodec/dvbsub.c
> @@ -223,7 +223,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
> else
> page_state = 2; /* mode change */
> /* page_version = 0 + page_state */
> - *q++ = s->object_version | (page_state << 2) | 3;
> + *q++ = (s->object_version << 4) | (page_state << 2) | 3;
>
> for (region_id = 0; region_id < h->num_rects; region_id++) {
> *q++ = region_id;
> --
> 1.7.4.msysgit.0
OK, queued.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list