[FFmpeg-devel] [PATCH] recover from truncated aiff

Maksym Veremeyenko verem
Tue Nov 25 15:08:16 CET 2008

Baptiste Coudurier ???????(??):
> It seems this issue is also present in raw.c and wav.c
wav.c will behave IMHO in the same way on broken samples, but i am not 
sure that solution will be appropriate for wav.c because it could 
contains other then PCM data.

Question: if wav file contains a MP2 data, does st->codec->block_align 
will be configured? If yes, does it code has a sense in libavformat/wav.c:
     if (st->codec->block_align > 1) {
         if (size < st->codec->block_align)
             size = st->codec->block_align;
         size = (size / st->codec->block_align) * st->codec->block_align;

Maksym Veremeyenko

More information about the ffmpeg-devel mailing list