Skip to content

Commit

Permalink
Add patch for ac3_descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
LraiZer committed Feb 13, 2019
1 parent 662871e commit 92f29ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/dvb/libdvbsi++/src/ac3_descriptor.cpp
Expand Up @@ -31,6 +31,16 @@ Ac3Descriptor::Ac3Descriptor(const uint8_t * const buffer) : Descriptor(buffer)
asvcFlag = (buffer[2] >> 4) & 0x01;

size_t headerLength = 1 + ac3TypeFlag + bsidFlag + mainidFlag + asvcFlag;

// broadcasters got it wrong again...
if (headerLength > descriptorLength) {
ac3TypeFlag = 0;
bsidFlag = 0;
mainidFlag = 0;
asvcFlag = 0;
eturn;
}

ASSERT_MIN_DLEN(headerLength);

size_t i = 3;
Expand Down

1 comment on commit 92f29ac

@LraiZer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, thanks for eagle eyes 8-) and patch

Please sign in to comment.