qtdemux: Extract CEA608 framerate from the (first) video stream
authorSebastian Dröge <sebastian@centricular.com>
Thu, 20 Dec 2018 09:31:58 +0000 (11:31 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 2 Jan 2019 10:29:46 +0000 (10:29 +0000)
commitd471be4f3ad370deceeecedc7cfe9daba73bc528
tree1c2630b234c14b433a8ec51193695e791922f7c2
parentac8fc4419a66d8fd0f8d3290e33c2ee1ba983ccb
qtdemux: Extract CEA608 framerate from the (first) video stream

EA608 closed caption tracks are a bit special in that each sample
can contain CCs for multiple frames, and CCs can be omitted and have to
be inferred from the duration of the sample then.

As such we take the framerate from the (first) video track here for
CEA608 as there must be one CC byte pair for every video frame
according to the spec.

For CEA708 all is fine and there is one sample per frame.
gst/isomp4/qtdemux.c