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
09e15184
Commit
09e15184
authored
Nov 16, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing unused code
Originally committed as revision 7096 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1ad20f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
nutdec.c
libavformat/nutdec.c
+1
-25
No files found.
libavformat/nutdec.c
View file @
09e15184
...
...
@@ -27,18 +27,13 @@
#undef NDEBUG
#include <assert.h>
static
uint64_t
get_v
(
ByteIOContext
*
bc
/*, maxstuffing*/
){
static
uint64_t
get_v
(
ByteIOContext
*
bc
){
uint64_t
val
=
0
;
for
(;;)
{
int
tmp
=
get_byte
(
bc
);
// if(tmp=0x80){
// if(!maxstuffing-- || val)
// return -1;
// }
if
(
tmp
&
0x80
)
val
=
(
val
<<
7
)
+
tmp
-
0x80
;
else
{
...
...
@@ -810,24 +805,6 @@ resync:
else
if
(
stream_index
==
-
2
)
return
back_ptr
;
assert
(
0
);
do
{
frame_code
=
get_byte
(
bc
);
if
(
frame_code
==
'N'
){
pos
=
url_ftell
(
bc
)
-
1
;
goto
resync
;
}
//FIXME consider pos_limit and eof
size
=
decode_frame_header
(
nut
,
&
flags
,
&
pts
,
&
stream_id
,
frame_code
);
if
(
size
<
0
)
goto
resync
;
url_fseek
(
bc
,
size
,
SEEK_CUR
);
}
while
(
stream_id
!=
stream_index
||
!
(
flags
&
FLAG_KEY
));
assert
(
nut
->
next_startcode
==
0
);
av_log
(
s
,
AV_LOG_DEBUG
,
"read_timestamp success
\n
"
);
return
pts
;
}
static
int
read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
pts
,
int
flags
){
...
...
@@ -898,7 +875,6 @@ AVInputFormat nut_demuxer = {
nut_read_packet
,
nut_read_close
,
read_seek
,
// nut_read_timestamp,
.
extensions
=
"nut"
,
};
#endif
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