Commit 41bb47bf authored by Ronen Mizrahi's avatar Ronen Mizrahi Committed by Michael Niedermayer

dvbsubenc: Fix placement of the object version

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit df211c3a)
parent 4c2ce590
...@@ -223,7 +223,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s, ...@@ -223,7 +223,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
else else
page_state = 2; /* mode change */ page_state = 2; /* mode change */
/* page_version = 0 + page_state */ /* 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++) { for (region_id = 0; region_id < h->num_rects; region_id++) {
*q++ = region_id; *q++ = region_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment