mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
flacparse: fixup 0.11 port of suspect frame checking
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=682959
This commit is contained in:
parent
e1881d1e44
commit
a2475a40a5
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ gst_flac_parse_frame_is_valid (GstFlacParse * flacparse,
|
|||
gst_flac_parse_frame_header_is_valid (flacparse, map.data + i,
|
||||
remaining, FALSE, NULL, &suspect_end);
|
||||
if (header_ret == FRAME_HEADER_VALID) {
|
||||
if (flacparse->check_frame_checksums) {
|
||||
if (flacparse->check_frame_checksums || suspect_start || suspect_end) {
|
||||
guint16 actual_crc = gst_flac_calculate_crc16 (map.data, i - 2);
|
||||
guint16 expected_crc = GST_READ_UINT16_BE (map.data + i - 2);
|
||||
|
||||
|
|
Loading…
Reference in a new issue