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)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:56:18 +0000 (20:56 +0200)
commitb8ab1adfcdb1f87e3e26425b4499046352009f29
tree89506048435c1b2f55b666981593892b696610e0
parent107ea3057eb8de8a38c45c2f7181c42ea694b187
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.
(cherry picked from commit 6326afd5e90cfed9df08b652a1cd6f6a948c239a)
libavcodec/utils.c