shithub: mcfs

Download patch

ref: 58e4e95cee26798a051f02fa7987f6b85dd11403
parent: f91544dd50718d66f7c081ae41b1f19c00840e2f
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Jan 6 05:57:12 EST 2021

iso: do not print stream information when dumping a track (fixes garbage at the end of tracks)

--- a/iso.c
+++ b/iso.c
@@ -1534,20 +1534,19 @@
 		Bseek(f, b.dstart+b.dsz, 0);
 	}
 
-	if(trackdump != Nodump && dumptrack(f, trackdump) != 0){
-		return -1;
-	}else{
-		for(i = 0; i < ntracks; i++){
-			t = &tracks[i];
-			Bprint(&out, "%d\t", t->id);
-			if(t->handlertype == HandlerVideo)
-				Bprint(&out, "video\t%s\t%d\t%d", codec(t->video.format), t->video.width, t->video.height);
-			else if(t->handlertype == HandlerAudio)
-				Bprint(&out, "audio\t%s\t%d\t%d", codec(t->audio.format), t->audio.channels, t->audio.samplerate);
-			else
-				Bprint(&out, "%T\t???", t->handlertype);
-			Bprint(&out, "\n");
-		}
+	if(trackdump != Nodump)
+		return dumptrack(f, trackdump);
+
+	for(i = 0; i < ntracks; i++){
+		t = &tracks[i];
+		Bprint(&out, "%d\t", t->id);
+		if(t->handlertype == HandlerVideo)
+			Bprint(&out, "video\t%s\t%d\t%d", codec(t->video.format), t->video.width, t->video.height);
+		else if(t->handlertype == HandlerAudio)
+			Bprint(&out, "audio\t%s\t%d\t%d", codec(t->audio.format), t->audio.channels, t->audio.samplerate);
+		else
+			Bprint(&out, "%T\t???", t->handlertype);
+		Bprint(&out, "\n");
 	}
 
 	return 0;