mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-04 18:36:00 -05:00
840524ec83
* Get rid of unused video_sample_entry rows. h264_reader rejected some of these; perhaps they were corrupted by some long-fixed bug. * Use an i64 for cum_duration_90k (oops); an i32 overflows with only 6.6 hours of recording, so this was guaranteed to fail on any real setup. * Add some context to those errors for debugging. For posterity, a video_sample_entry that failed: sqlite> select id, hex(sha1), width, height, rfc6381_codec, hex(data) from video_sample_entry where id = 9; 9|B3607B06107E779F57D062331FB54B59E964B9BC|1920|1080|avc1.640028|000000B26176633100000000000000010000000000000000000000000000000007800438004800000048000000000000000100000000000000000000000000000000000000000000000000000000000000000018FFFF0000005C6176634301640028FFE1002967640028AC1B1A80780227E5C05B808080A000007D0000186A1D0C0029FF5DE5C6860014FFAEF2E140010020A886052ACA0500769C28476EFE104A8000F08781320819888E894B5200000000