[FFmpeg-devel] Possible bug in dvbsub.c

Ronen Mizrahi ronen
Tue Feb 8 19:26:43 CET 2011


Looks like line 226 in dvbsub.c is neglecting to put the object version in
the correct bits:
*q++ = s->object_version | (page_state << 2) | 3;

It should be:

*q++ = (s->object_version << 4) | (page_state << 2) | 3;

I am no dvbsub expert so I was hoping someone on the list can confirm. In my
case the encoding did not play correctly in vlc before this patch but does
after it, so I suspect it is indeed required.

Thanks in advance,

Ronen Mizrahi

More information about the ffmpeg-devel mailing list