summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsub.c
diff options
context:
space:
mode:
authorRonen Mizrahi <ronen@tversity.com>2011-02-10 11:50:00 -0500
committerMichael Niedermayer <michaelni@gmx.at>2011-02-11 02:54:10 +0100
commit41bb47bf960e52d2dfcfcf1cff475ff39bbeb130 (patch)
tree51f9437f36b27002e89811e92a67c1e7ab00f1c6 /libavcodec/dvbsub.c
parent4c2ce5900f5e1861a7ce01c1cba12ea10040b5a5 (diff)
downloadffmpeg-41bb47bf960e52d2dfcfcf1cff475ff39bbeb130.tar.gz
dvbsubenc: Fix placement of the object version
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit df211c3ab73b36208ac4511a9cd7feb817f551fa)
Diffstat (limited to 'libavcodec/dvbsub.c')
-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;