From 31328c30ec716cf67707c710ff8b9607267a96b6 Mon Sep 17 00:00:00 2001
From: Elian Dib <elian.dib@inria.fr>
Date: Mon, 26 Feb 2018 15:24:29 +0100
Subject: [PATCH] Catch exception if no encoding log file

---
 codec.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/codec.m b/codec.m
index 8db25ca..aed6528 100644
--- a/codec.m
+++ b/codec.m
@@ -128,7 +128,11 @@ if status
     end
 end
 
-[nbBits,peaksnr] = HEVC.parseLog(LogFileEnc);
+try
+    [nbBits,peaksnr] = HEVC.parseLog(LogFileEnc);
+catch
+    [nbBits,peaksnr] = deal(NaN);
+end
 
 end
 
-- 
GitLab