diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-16 20:53:55 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-18 02:49:43 +0200 |
commit | e1f41b4fdc5d3e8813d8f9d4d81899bd4e6df31b (patch) | |
tree | 60579319939655817bf778bb781afc53eb89fcf2 /tests/ref/fate/filter-pixdesc-gbrp12le | |
parent | a74428921f8bfb33cbe0340bfd810b6945e432d2 (diff) | |
download | ffmpeg-e1f41b4fdc5d3e8813d8f9d4d81899bd4e6df31b.tar.gz |
avformat/wavdec: Fix reading files with id3v2 apic before fmt tag
Up until now the cover images will get the stream index 0 in this case,
violating the hardcoded assumption that this is the index of the audio
stream. Fix this by creating the audio stream first; this is also in
line with the expectations of ff_pcm_read_seek() and
ff_spdif_read_packet(). It also simplifies the code to parse the fmt and
xma2 tags.
Fixes #8540; regression since f5aad350d3695b5b16e7d135154a4c61e4dce9d8.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/fate/filter-pixdesc-gbrp12le')
0 files changed, 0 insertions, 0 deletions