Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e692fd60
Commit
e692fd60
authored
Oct 02, 2003
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed codec specific data headers
Originally committed as revision 2337 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cf246283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
nut.c
libavformat/nut.c
+9
-10
No files found.
libavformat/nut.c
View file @
e692fd60
/*
*
NUT (de)muxer based on initial draft
*
"NUT" Container Format muxer and demuxer (DRAFT-20031003)
* Copyright (c) 2003 Alex Beregszaszi
*
* This library is free software; you can redistribute it and/or
...
...
@@ -18,19 +18,18 @@
*
* NUT DRAFT can be found in MPlayer CVS at DOCS/tech/mpcf.txt
*
*
Compatible with draft version 20030906
*
AND http://people.fsn.hu/~alex/nut/ (TeX, pdf, ps, dvi, ..)
*
*/
/*
* TODO:
* - checksumming
* -
correct
timestamp handling
* -
optimal
timestamp handling
* - index writing
* - info and index packet reading support
* - startcode searching for broken streams
* - subpacket support
* - handling of codec specific headers
*/
//#define DEBUG 1
...
...
@@ -92,8 +91,7 @@ static int get_b(ByteIOContext *bc, char *data, int maxlen)
for
(
i
=
0
;
i
<
len
&&
i
<
maxlen
;
i
++
)
data
[
i
]
=
get_byte
(
bc
);
/* skip remaining bytes */
for
(;
i
<
len
;
i
++
)
get_byte
(
bc
);
url_fskip
(
bc
,
len
-
i
);
return
0
;
}
...
...
@@ -106,8 +104,7 @@ static int get_bi(ByteIOContext *bc)
for
(
i
=
0
;
i
<
len
&&
i
<=
4
;
i
++
)
val
|=
get_byte
(
bc
)
<<
(
i
*
8
);
/* skip remaining bytes */
for
(;
i
<
len
;
i
++
)
get_byte
(
bc
);
url_fskip
(
bc
,
len
-
i
);
return
val
;
}
...
...
@@ -474,8 +471,10 @@ static int nut_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_v
(
bc
);
/* FIXME: msb timestamp base */
get_v
(
bc
);
/* shuffle type */
get_byte
(
bc
);
/* flags */
get_v
(
bc
);
/* FIXME: codec specific data headers */
/* codec specific data headers */
while
(
get_v
(
bc
)
!=
0
)
url_fskip
(
bc
,
get_v
(
bc
));
if
(
class
==
0
)
/* VIDEO */
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment