From 41bb47bf960e52d2dfcfcf1cff475ff39bbeb130 Mon Sep 17 00:00:00 2001 From: Ronen Mizrahi Date: Thu, 10 Feb 2011 11:50:00 -0500 Subject: dvbsubenc: Fix placement of the object version Signed-off-by: Mans Rullgard (cherry picked from commit df211c3ab73b36208ac4511a9cd7feb817f551fa) --- libavcodec/dvbsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/dvbsub.c') diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c index c2a129864f..ed128234e8 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; -- cgit v1.2.1