happycube / ld-decode

Software defined LaserDisc decoder
GNU General Public License v3.0
296 stars 76 forks source link

Convert asserts to exceptions in ld-ac3-decode #839

Closed atsampson closed 1 year ago

atsampson commented 1 year ago

Some asserts were previously disabled in 1500999ef3d5ce867532f346578b8f8108d045b3. This converts them (including the disabled ones) into exceptions, so the main loop can detect that parsing the frame has failed rather than exiting, allowing the decode to continue.

I've also included fixes for some new warnings produced by GCC 12.2.