aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonen Mizrahi <ronen@tversity.com>2011-02-10 11:50:00 -0500
committerMans Rullgard <mans@mansr.com>2011-02-10 21:45:17 +0000
commitdf211c3ab73b36208ac4511a9cd7feb817f551fa (patch)
tree745e70773109f378e0af0cdaf30fe018c236d7f9
parent5c19f64c600ece050a1deb27f53963e4416beb31 (diff)
downloadffmpeg-df211c3ab73b36208ac4511a9cd7feb817f551fa.tar.gz
dvbsubenc: Fix placement of the object version
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--libavcodec/dvbsub.c2
1 files changed, 1 insertions, 1 deletions
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;