avcodec/pafvideo: Check input space for decode_0() before slow operations