avcodec/smc: Check remaining input