qtdemux: Check sample count is valid in PIFF parsing
authorEdward Hervey <edward@centricular.com>
Thu, 22 Mar 2018 14:20:47 +0000 (15:20 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 22 Mar 2018 14:22:24 +0000 (15:22 +0100)
commit60bc77cc358fb5c20a93722d94e502d3f0fa4991
tree39092150e83cd9981a3e0839bddc8532a3c1e806
parent56a1eb65e2f82c36d5f63e1182ebf78680a0adba
qtdemux: Check sample count is valid in PIFF parsing

The value stored in cenc_aux_sample_count wasn't in sync with the
parsing code that followed which checks whether all entries are
valid and present.

Only write the actual sample count when we know for sure.

CID #1427087
gst/isomp4/qtdemux.c