shithub: nvi

Download patch

ref: d1d1267271f9f0bc6ad4a2a31ad7bc3b6125d820
parent: d23c026cbb1ff3faf38b518cddb128012142515b
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jul 23 03:16:05 EDT 2021

don't crash when no video streams found

--- a/nvi.c
+++ b/nvi.c
@@ -130,7 +130,8 @@
 		}
 		if(fv == nil)
 			fv = bv;
-		if(fa == nil && (fv->included & Iaudio) == 0) /* no audio and video stream doesn't have it either */
+		/* no audio and video stream doesn't have it either */
+		if(fa == nil && (fv == nil || (fv->included & Iaudio) == 0))
 			fa = ba;
 
 		i = 0;