]> git.sesse.net Git - ffmpeg/commit
avcodec/mpegaudiodec_template: Check CRCs for layer1 and layer2
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 3 Aug 2020 14:33:56 +0000 (16:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Aug 2020 16:27:51 +0000 (18:27 +0200)
commitfd0064f75bfe8bab9e16c32aab4efc24889a3cd0
tree944028f89902b7c4f61b24caae4168a8970b1544
parent9fbdd5454bba660a2ec3aa4da31183b2f7fd3bc8
avcodec/mpegaudiodec_template: Check CRCs for layer1 and layer2

This differs from the MPEG specification as the actual real world
files do compute their CRC over variable areas and not the fixed
ones listed in the specification. This is also the reason for
the complexity of this code and the need to perform the CRC
check for layer2 in the middle of layer2 decoding.

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegaudiodec_template.c