[mythtv-commits] [MythTV/mythtv] 092ddc: Validate video descriptor before checking still pi...

David Hampton noreply at github.com
Fri Nov 18 13:33:10 UTC 2022

  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 092ddc0970255277c76a87ca9c09e0ccd7e5edc7
  Author: David Hampton <mythtv at love2code.net>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M mythtv/libs/libmythtv/mpeg/mpegtables.cpp

  Log Message:
  Validate video descriptor before checking still picture bit.

Check to ensure that the first descriptor is a video_stream descriptor
(value 0x02) before parsing its contents. I have four test samples,
only one of which contains a video_stream descriptor in the PMT. The
others contain a system clock descriptor (0x11), a maximum bitrate
descriptor(0x14), and a private descriptor(0x86).  Test cases for all
four samples will be forthcoming.

This code still only handles the first descriptor of possibly multiple
stream descriptors. This code still needs to be updated to scan
through all the possible descriptors.

More information about the mythtv-commits mailing list