History

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

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 58e4e951 parent f91544d1 file · +13 −14Browse files

Unified · Split

iso.c+13−14
@@ -1534,20 +1534,19 @@ isorun(Biobuf *f) · 1533 unmodified lines
1534 Bseek(f, b.dstart+b.dsz, 0);1534 Bseek(f, b.dstart+b.dsz, 0);
1535 }1535 }
1536 1536
1537 if(trackdump != Nodump && dumptrack(f, trackdump) != 0){1537 if(trackdump != Nodump)
1538 return -1;1538 return dumptrack(f, trackdump);
1539 }else{1539
1540 for(i = 0; i < ntracks; i++){1540 for(i = 0; i < ntracks; i++){
1541 t = &tracks[i];1541 t = &tracks[i];
1542 Bprint(&out, "%d\t", t->id);1542 Bprint(&out, "%d\t", t->id);
1543 if(t->handlertype == HandlerVideo)1543 if(t->handlertype == HandlerVideo)
1544 Bprint(&out, "video\t%s\t%d\t%d", codec(t->video.format), t->video.width, t->video.height);1544 Bprint(&out, "video\t%s\t%d\t%d", codec(t->video.format), t->video.width, t->video.height);
1545 else if(t->handlertype == HandlerAudio)1545 else if(t->handlertype == HandlerAudio)
1546 Bprint(&out, "audio\t%s\t%d\t%d", codec(t->audio.format), t->audio.channels, t->audio.samplerate);1546 Bprint(&out, "audio\t%s\t%d\t%d", codec(t->audio.format), t->audio.channels, t->audio.samplerate);
1547 else1547 else
1548 Bprint(&out, "%T\t???", t->handlertype);1548 Bprint(&out, "%T\t???", t->handlertype);
1549 Bprint(&out, "\n");1549 Bprint(&out, "\n");
1550 }
1551 }1550 }
1552 1551
1553 return 0;1552 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t