#11581 closed defect (fixed_and_fate_test)

WAV demuxer codec probe misdetects PCM data as MP3

Reported by: Marton Balint Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: wav pcm_s16le mp1 mp3
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffprobe wav-pcm-misdetected-as-mp3.wav 
ffprobe version N-119447-g62f9d45284 Copyright (c) 2007-2025 the FFmpeg developers
  built with gcc 7 (SUSE Linux)
  configuration: --enable-vdpau --enable-gpl --enable-libfreetype --enable-libzvbi --enable-libass --enable-frei0r --enable-openssl --enable-nonfree --enable-libx264 --enable-libx265 --enable-libsrt --enable-libfdk-aac --enable-nonfree --enable-libvorbis --enable-decklink --enable-libmp3lame --enable-libvpx --enable-librsvg --enable-libdrm --enable-indev=kmsgrab --assert-level=2 --enable-libzimg --enable-opengl --enable-libpulse --enable-libxml2 --enable-libsnappy --enable-encoder=hap --enable-libwebp --enable-libopenh264 --enable-libfontconfig --enable-libklvanc --enable-libzmq --enable-libfreetype --enable-filter=drawtext --enable-libxvid
  libavutil      60.  2.100 / 60.  2.100
  libavcodec     62.  3.101 / 62.  3.101
  libavformat    62.  0.102 / 62.  0.102
  libavdevice    62.  0.100 / 62.  0.100
  libavfilter    11.  0.100 / 11.  0.100
  libswscale      9.  0.100 /  9.  0.100
  libswresample   6.  0.100 /  6.  0.100
  libpostproc    59.  1.100 / 59.  1.100
[mp1 @ 0x2c3401c0] Header missing
Input #0, wav, from 'wav-pcm-misdetected-as-mp3.wav':
  Metadata:
    encoder         : Lavf62.0.102
    timecode        : 00:00:00:00
  Duration: 00:00:00.51, bitrate: 1537 kb/s
  Stream #0:0: Audio: mp1 ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16p, 1536 kb/s

Expected result would be:

Input #0, wav, from 'wav-pcm-misdetected-as-mp3.wav':
  Metadata:
    encoder         : Lavf62.0.102
    timecode        : 00:00:00:00
  Duration: 00:00:00.51, bitrate: 1537 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s

Attachments (1)

wav-pcm-misdetected-as-mp3.wav​ (96.1 KB ) - added by Marton Balint 19 months ago.

Download all attachments as: .zip

Change History (3)

by Marton Balint, 19 months ago

comment:1 by MasterQuestionable, 18 months ago

Cc: MasterQuestionable added

͏    Likely relevant:
͏    ​https://trac.ffmpeg.org/ticket/11087#comment:3

͏    In such cases the input filename extension shall be considered for the judgment.

comment:2 by Marton Balint, 18 months ago

Resolution: → fixed_and_fate_test
Status: new → closed
Note: See TracTickets for help on using tickets.