Skip to content

Commit

Permalink
Validate video descriptor before checking still picture bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jul 29, 2022
1 parent 5acba1b commit fe6d17e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/mpeg/mpegtables.cpp
Expand Up @@ -624,6 +624,7 @@ bool ProgramMapTable::IsStillPicture(const QString& sistandard) const
if (IsVideo(i, sistandard))
{
return StreamInfoLength(i) > 2 &&
(StreamInfo(i)[0] == DescriptorID::video_stream) &&
((StreamInfo(i)[2] & kStillPictureFlag) != 0);
}
}
Expand Down

0 comments on commit fe6d17e

Please sign in to comment.