avcodec/rpza: Check that there is enough data for all the blocks