avcodec: reject audio packets with NULL data and non-zero size
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 24 Sep 2011 01:54:44 +0000 (21:54 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 30 Sep 2011 15:02:50 +0000 (11:02 -0400)
commit6326afd5e90cfed9df08b652a1cd6f6a948c239a
tree35fb9a339742eeac431f48b9cba460aa18f3d2c4
parentdcce09d64bd13ab13b86307f5a268e5c1e50c7e2
avcodec: reject audio packets with NULL data and non-zero size

There is no valid reason the user should ever send such packets in the
first place, but the documentation for CODEC_CAP_DELAY states that the
codec is guaranteed not to get a NULL packet unless that capability is
set. That isn't true without preventing this case.
libavcodec/utils.c