mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
69510f6483
Attempt to sniff raw mp3 with no id3 tag by looking for a header followed by a second header at the expected offset from the packet length. Adds mp3 sniffing with and without id3 tags to the mediasniffer xpcshell tests. These files are truncated to 512 bytes. Our method can require up to 1.5k of data, but these have 208/209 byte packets so sniffing still works. notags-bad.mp3 has a corrupt header, and verifies sniffing fails. notags-scan.mp3 has garbage before the header, and verifies sniffing fails. he_free.mp is a vbr test vector which isn't sniffable with this method. fl10.mp2 is an mp2 file, and verifies sniffing fails. ff-inst.exe verifies bug 875769 doesn't regress.
23 lines
505 B
Python
23 lines
505 B
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
TEST_DIRS += ['test']
|
|
|
|
MODULE = 'mediasniffer'
|
|
|
|
EXPORTS += [
|
|
'nsMediaSniffer.h',
|
|
]
|
|
|
|
CPP_SOURCES += [
|
|
'nsMediaSniffer.cpp',
|
|
'nsMediaSnifferModule.cpp',
|
|
]
|
|
|
|
CSRCS += [
|
|
'mp3sniff.c',
|
|
]
|