[FFmpeg-devel] [PATCH 1/4] wmaprodec: fix return value for too small packets.
nicolas.george at normalesup.org
Tue Jul 31 19:28:48 CEST 2012
Le quartidi 14 thermidor, an CCXX, Michael Niedermayer a écrit :
> IMHO the decoder should just decode the packet no matter what size it
Maybe that would be better, but that is not what it currently does, and
changing its behaviour is way beyond my knowledge of that codec. The purpose
of this patch was only to avoid returning 0 (success) when no progress was
done at all nor can be done.
But maybe that kind of behaviour is helpful for applications that do not use
lavf and rely on avcodec_decode_audio4() to also detect packets boundaries?
In that case, I shall leave it as is and adjust the asserts/checks I
proposed in avcodec_decode_audio4() accordingly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel