shithub: mcfs

Download patch

ref: 0ec8eb7fc4df54a579d17ebb46b2a226928d062b
parent: 3e359350719541544bc2f2c1138c006e85b8e5a6
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Sep 16 07:51:19 EDT 2020

fail on NAL len != 4

--- a/iso.c
+++ b/iso.c
@@ -834,6 +834,10 @@
 		Bwrite(&out, frame, 0x20);
 
 		if(t->video.format == FmtAvc1){
+			if(t->video.avc.nallen != 4){
+				werrstr("avc1 nallen != 4 isn't supported yet");
+				return -1;
+			}
 			memset(frame, 0, 4+8+4);
 			frame[4+8+3] = 1;
 			for(i = 0; i < t->video.avc.nsps; i++){