flacparse: Optionally check the overall frame checksums too before accepting a frame...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Mar 2010 17:58:35 +0000 (18:58 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:06 +0000 (18:07 +0100)
commit00b04446186e7994affdba791ced46d1fd5920b7
treea8970393a6a7bad15843ea8618e50b5bd6862f2b
parent7b10c2afced6c5e03629dc491dbd9e267f136219
flacparse: Optionally check the overall frame checksums too before accepting a frame as valid

This is optional because it's a quite expensive operation and it's very
unlikely that a non-frame is detected as frame after the header CRC check
and checking all bits for valid values. The overall frame checksums are
mainly useful to detect inconsistencies in the encoded payload.
gst/audioparsers/gstflacparse.c
gst/audioparsers/gstflacparse.h