Skip to content

Commit

Permalink
Fix subtitle not showing on some channels
Browse files Browse the repository at this point in the history
According to the spec object_vertical_position is not a 16 bit
field. First 4 bits are reserved for future use.

thx betacentauri
  • Loading branch information
madie66 committed Sep 4, 2018
1 parent 2a6d47f commit bf93089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dvb/subtitle.cpp
Expand Up @@ -505,7 +505,7 @@ int eDVBSubtitleParser::subtitle_process_segment(uint8_t *segment)
object->object_horizontal_position |= *segment++;
processed_length += 2;

object->object_vertical_position = *segment++ << 8;
object->object_vertical_position = (*segment++ & 0xF) << 8;
object->object_vertical_position |= *segment++ ;
processed_length += 2;

Expand Down

0 comments on commit bf93089

Please sign in to comment.