apedec: do not set s->samples until after validation.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 11 Oct 2011 16:49:46 +0000 (12:49 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 28 Oct 2011 15:47:27 +0000 (11:47 -0400)
commitb7e514575982fd2f5db5ea4f3b466d6dd6a08aa7
treebaf3317251d1e3f706c7f73e15c510208a6cbb29
parent11ca8b2d7486e879926488404b3b79af774f0f2d
apedec: do not set s->samples until after validation.

This prevents errors and/or invalid writes in the next decode call due to
s->samples still being negative.
libavcodec/apedec.c