Commit a7961666 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DVBSub: change the end-of-field marker according to v1.3.1

300 743 v1.2.1 mentionned '1111 1111', but 1.3.1 mentions '11 1111' only.
I believe it is a typo, (maybe, maybe not) but the spec is out, so people
will write encoders following it.
So, we do not look at the 2 bits of strong weight.
parent be5ce729
...@@ -441,7 +441,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -441,7 +441,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
decode_segment( p_dec, &p_sys->bs ); decode_segment( p_dec, &p_sys->bs );
} }
if( bs_read( &p_sys->bs, 8 ) != 0xff ) /* End marker */ if( ( bs_read( &p_sys->bs, 8 ) & 0x3f ) != 0x3f ) /* End marker */
{ {
msg_Warn( p_dec, "end marker not found (corrupted subtitle ?)" ); msg_Warn( p_dec, "end marker not found (corrupted subtitle ?)" );
block_Release( p_block ); block_Release( p_block );
......
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