-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mp4tree] Break out NAL and SEI parsing
* A refactoring step since main file has grown a bit
- Loading branch information
Nils Andgren
committed
Feb 18, 2020
1 parent
df0d1c1
commit a6f2fd2
Showing
9 changed files
with
566 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <string.h> | ||
|
||
#include "common.h" | ||
|
||
const char * | ||
indent(int depth, int header) | ||
{ | ||
static char buf[64]; | ||
int i = 0; | ||
|
||
memset(buf, 0 , sizeof buf); | ||
|
||
for (i = 0; i < depth; i++) | ||
{ | ||
strcat(buf, "| "); | ||
} | ||
|
||
if (header) | ||
strcat(buf, "+"); | ||
else | ||
strcat(buf, ""); | ||
|
||
return buf; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
#include <stdlib.h> | ||
#include <stdint.h> | ||
|
||
const char * | ||
indent(int depth, int header); |
Oops, something went wrong.