Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
897d3eef
Commit
897d3eef
authored
17 years ago
by
Kostya Shishkov
Browse files
Options
Downloads
Patches
Plain Diff
Make get_v() available to the other demuxers
Originally committed as revision 10911 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0c904db1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavformat/avio.h
+2
-0
2 additions, 0 deletions
libavformat/avio.h
libavformat/aviobuf.c
+11
-0
11 additions, 0 deletions
libavformat/aviobuf.c
libavformat/nutdec.c
+0
-11
0 additions, 11 deletions
libavformat/nutdec.c
with
13 additions
and
11 deletions
libavformat/avio.h
+
2
−
0
View file @
897d3eef
...
...
@@ -192,6 +192,8 @@ unsigned int get_be24(ByteIOContext *s);
unsigned
int
get_be32
(
ByteIOContext
*
s
);
uint64_t
get_be64
(
ByteIOContext
*
s
);
uint64_t
get_v
(
ByteIOContext
*
bc
);
static
inline
int
url_is_streamed
(
ByteIOContext
*
s
)
{
return
s
->
is_streamed
;
...
...
This diff is collapsed.
Click to expand it.
libavformat/aviobuf.c
+
11
−
0
View file @
897d3eef
...
...
@@ -472,6 +472,17 @@ uint64_t get_be64(ByteIOContext *s)
return
val
;
}
uint64_t
get_v
(
ByteIOContext
*
bc
){
uint64_t
val
=
0
;
int
tmp
;
do
{
tmp
=
get_byte
(
bc
);
val
=
(
val
<<
7
)
+
(
tmp
&
127
);
}
while
(
tmp
&
128
);
return
val
;
}
/* link with avio functions */
#ifdef CONFIG_MUXERS
...
...
This diff is collapsed.
Click to expand it.
libavformat/nutdec.c
+
0
−
11
View file @
897d3eef
...
...
@@ -27,17 +27,6 @@
#undef NDEBUG
#include
<assert.h>
static
uint64_t
get_v
(
ByteIOContext
*
bc
){
uint64_t
val
=
0
;
int
tmp
;
do
{
tmp
=
get_byte
(
bc
);
val
=
(
val
<<
7
)
+
(
tmp
&
127
);
}
while
(
tmp
&
128
);
return
val
;
}
static
int
get_str
(
ByteIOContext
*
bc
,
char
*
string
,
unsigned
int
maxlen
){
unsigned
int
len
=
get_v
(
bc
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment