[FFmpeg-cvslog] dvbsubenc: Fix placement of the object version

Ronen Mizrahi git
Fri Feb 11 03:52:14 CET 2011


ffmpeg | branch: master | Ronen Mizrahi <ronen at tversity.com> | Thu Feb 10 11:50:00 2011 -0500| [41bb47bf960e52d2dfcfcf1cff475ff39bbeb130] | committer: Michael Niedermayer

dvbsubenc: Fix placement of the object version

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit df211c3ab73b36208ac4511a9cd7feb817f551fa)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41bb47bf960e52d2dfcfcf1cff475ff39bbeb130
---

 libavcodec/dvbsub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c
index c2a1298..ed12823 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;




More information about the ffmpeg-cvslog mailing list