[FFmpeg-devel] [PATCH]Fix brokem mp3 in avi

Derek Buitenhuis derek.buitenhuis at gmail.com
Wed Oct 10 18:46:34 CEST 2012


On 10/10/2012 12:36 PM, Carl Eugen Hoyos wrote:
> -                    if(st->codec->codec_id == AV_CODEC_ID_AAC && ast->dshow_block_align == 1024 && ast->sample_size == 1024) {
> +                    if(st->codec->codec_id == AV_CODEC_ID_AAC && ast->dshow_block_align == 1024 && ast->sample_size == 1024 ||
> +                       st->codec->codec_id == AV_CODEC_ID_MP3 && ast->dshow_block_align == 1152 && ast->sample_size == 1152) {

Where do these numbers come from? Is it really just "we have a single sample
that we dumped this from"? Unless it's a commonly occuring thing with an
explanation, I don't think it is a good idea to add hacks in to compensate
for one broken file.

- Derek


More information about the ffmpeg-devel mailing list