diff --git a/LFtoHEVC.m b/LFtoHEVC.m
index 42c829fd858d1abe8e35a6522c0d8109cae75687..d2be53c3ec521cf77888eedda098b1acd1538a23 100644
--- a/LFtoHEVC.m
+++ b/LFtoHEVC.m
@@ -35,9 +35,9 @@ decode         = p.Results.decode;
 HEVCParams.encode = encode;
 HEVCParams.decode = decode;
 
-HEVCParams.InputFile     = yuv.params2name(refFilename,imgSize,subSamp,InputBitDepth ,'.yuv');
-HEVCParams.ReconFile     = yuv.params2name(recFilename,imgSize,subSamp,OutputBitDepth,'.yuv');
-HEVCParams.BitstreamFile = yuv.params2name(recFilename,imgSize,subSamp,InputBitDepth ,'.hevc');
+HEVCParams.InputFile     = utils.params2name(refFilename,imgSize,imgRes,subSamp,InputBitDepth ,'yuv');
+HEVCParams.ReconFile     = utils.params2name(recFilename,imgSize,imgRes,subSamp,OutputBitDepth,'yuv');
+HEVCParams.BitstreamFile = utils.params2name(recFilename,imgSize,imgRes,subSamp,InputBitDepth ,'hevc');
 HEVCParams.SourceWidth   = num2str(imgSize(2));
 HEVCParams.SourceHeight  = num2str(imgSize(1));
 HEVCParams.FramesToBeEncoded = num2str(prod(imgRes));