#8540: wavdec failure when wav contains id3 tag with image
----------------------------------+--------------------------------------
Reporter: Adion | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: wav id3 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8540>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".