avcodec/v4l2_m2m: fix setting frame period