apedec: do not keep incrementing the input data pointer past the end of the
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 11 Oct 2011 18:12:54 +0000 (14:12 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 28 Oct 2011 15:47:28 +0000 (11:47 -0400)
commit5b8009f4c80d8fd96523c8c163441ad4011ad472
treeaf39a3486932cd7e6decfdca8456a296d0c63c4f
parenta4c32c9a63142b602820800742f2d543b58cd278
apedec: do not keep incrementing the input data pointer past the end of the
buffer during entropy decoding.

The pointer address could overflow, which would likely segfault. Instead set
the context error flag to indicate that the decoder tried to read past the
end of the packet data.
libavcodec/apedec.c