avcodec/msrle: use av_image_get_linesize() to calculate the linesize