Opened 5 years ago
Closed 4 years ago
#8540 closed defect (fixed)
wavdec failure when wav contains id3 tag with image
Reported by: | Adion | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | wav id3 regression |
Cc: | adionc@gmail.com | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
The wav format decoder has a hard-coded assumption that there is 1 audio stream at index 0 and optionally one video stream at index 1.
When wav_read_header encounters an ID3 tag, it will call ff_id3v2_parse_apic which creates a new stream for the attached picture.
If the ID3 tag comes before the fmt tag, the audio tag will therefore end up at index 1 instead of index 0.
wav_read_packet on the other hand will mark all packets as belonging to index 0, thus you may end up never finding a packet to feed to the audio codec.
The easiest fix is probably to re-order the streams in read_header to ensure the assumptions hold up.
Attachments (1)
Change History (6)
comment:1 by , 5 years ago
Cc: | added |
---|
follow-up: 3 comment:2 by , 5 years ago
comment:3 by , 5 years ago
Replying to cehoyos:
Please provide a sample file.
https://drive.google.com/uc?id=13Pb9H7xf7F2_Freski4oreBmutJR6F6W&export=download
comment:4 by , 5 years ago
Keywords: | regression added |
---|---|
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Regression since f5aad350d3695b5b16e7d135154a4c61e4dce9d8, related to ticket #5700.
by , 5 years ago
Attachment: | 01 Esto Es Vida_cut.wav added |
---|
comment:5 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed in e1f41b4fdc5d3e8813d8f9d4d81899bd4e6df31b.
Please provide a sample file.