avcodec/tiff: reset sampling[] if its invalid