[FFmpeg-devel] [PATCH 1/3] examples: demuxing: do partial audio packet decoding

Paul B Mahol onemda at gmail.com
Sat Jul 20 08:25:48 CEST 2013


On 7/19/13, Nicolas George <nicolas.george at normalesup.org> wrote:
> Le primidi 1er thermidor, an CCXXI, Stefano Sabatini a ecrit :
>> I'm not happy about this, which I consider a bug workaround which
>> should be fixed in the library.
>
> http://ffmpeg.org/pipermail/ffmpeg-devel/2012-July/128514.html
> http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/148643/focus=148661

Well, I'm aware of two such codecs, Shorten and APDCM IMA WAV (maybe
other adpcm codecs are affected too).

ADPCM case is just because of avctx->block_align, it block_align is
set, decoder picks packet and decodes data only from one
block. This hack could be removed and all this handled in decoder itself.

Shorten is another story, iirc there are no packets, you get data and
start decoding until something happens ....

They may be other audio codecs that are affected by this.
All video ones should be fine I guess.

>
> Please feel free to take this over.
>
> Regards,
>
> --
>   Nicolas George
>


More information about the ffmpeg-devel mailing list