avcodec/012v: improve stride selection