diff options
author | Ronen Mizrahi <ronen@tversity.com> | 2011-02-10 11:50:00 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-11 02:54:10 +0100 |
commit | 41bb47bf960e52d2dfcfcf1cff475ff39bbeb130 (patch) | |
tree | 51f9437f36b27002e89811e92a67c1e7ab00f1c6 /libavcodec/dvbsub.c | |
parent | 4c2ce5900f5e1861a7ce01c1cba12ea10040b5a5 (diff) | |
download | ffmpeg-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.c | 2 |
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; |