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.
Showing
Please
register
or
sign in
to comment
This prevents errors and/or invalid writes in the next decode call due to s->samples still being negative.