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
55b9e69a
Commit
55b9e69a
authored
Dec 12, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av_*_next() API for libavcodec
Originally committed as revision 11204 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8540e8c3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
7 deletions
+28
-7
ffmpeg.c
ffmpeg.c
+4
-4
avcodec.h
libavcodec/avcodec.h
+9
-3
bitstream_filter.c
libavcodec/bitstream_filter.c
+5
-0
parser.c
libavcodec/parser.c
+5
-0
utils.c
libavcodec/utils.c
+5
-0
No files found.
ffmpeg.c
View file @
55b9e69a
...
...
@@ -3321,8 +3321,8 @@ static void opt_show_formats(void)
AVInputFormat
*
ifmt
;
AVOutputFormat
*
ofmt
;
URLProtocol
*
up
;
AVCodec
*
p
,
*
p2
;
AVBitStreamFilter
*
bsf
;
AVCodec
*
p
=
NULL
,
*
p2
;
AVBitStreamFilter
*
bsf
=
NULL
;
const
char
*
last_name
;
printf
(
"File formats:
\n
"
);
...
...
@@ -3373,7 +3373,7 @@ static void opt_show_formats(void)
const
char
*
type_str
;
p2
=
NULL
;
for
(
p
=
first_avcodec
;
p
!=
NULL
;
p
=
p
->
next
)
{
while
(
p
=
av_codec_next
(
p
)
)
{
if
((
p2
==
NULL
||
strcmp
(
p
->
name
,
p2
->
name
)
<
0
)
&&
strcmp
(
p
->
name
,
last_name
)
>
0
){
p2
=
p
;
...
...
@@ -3419,7 +3419,7 @@ static void opt_show_formats(void)
printf
(
"
\n
"
);
printf
(
"Bitstream filters:
\n
"
);
for
(
bsf
=
first_bitstream_filter
;
bsf
!=
NULL
;
bsf
=
bsf
->
next
)
while
(
bsf
=
av_bitstream_filter_next
(
bsf
)
)
printf
(
" %s"
,
bsf
->
name
);
printf
(
"
\n
"
);
...
...
libavcodec/avcodec.h
View file @
55b9e69a
...
...
@@ -33,8 +33,8 @@
#define AV_STRINGIFY(s) AV_TOSTRING(s)
#define AV_TOSTRING(s) #s
#define LIBAVCODEC_VERSION_INT ((51<<16)+(4
8
<<8)+0)
#define LIBAVCODEC_VERSION 51.4
8
.0
#define LIBAVCODEC_VERSION_INT ((51<<16)+(4
9
<<8)+0)
#define LIBAVCODEC_VERSION 51.4
9
.0
#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
...
...
@@ -2428,7 +2428,10 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
/* external high level API */
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
extern
AVCodec
*
first_avcodec
;
#endif
AVCodec
*
av_codec_next
(
AVCodec
*
c
);
/* returns LIBAVCODEC_VERSION_INT constant */
unsigned
avcodec_version
(
void
);
...
...
@@ -2784,7 +2787,10 @@ typedef struct AVCodecParser {
struct
AVCodecParser
*
next
;
}
AVCodecParser
;
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
extern
AVCodecParser
*
av_first_parser
;
#endif
AVCodecParser
*
av_parser_next
(
AVCodecParser
*
c
);
void
av_register_codec_parser
(
AVCodecParser
*
parser
);
AVCodecParserContext
*
av_parser_init
(
int
codec_id
);
...
...
@@ -2827,7 +2833,7 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
const
uint8_t
*
buf
,
int
buf_size
,
int
keyframe
);
void
av_bitstream_filter_close
(
AVBitStreamFilterContext
*
bsf
);
extern
AVBitStreamFilter
*
first_bitstream_filter
;
AVBitStreamFilter
*
av_bitstream_filter_next
(
AVBitStreamFilter
*
f
)
;
/* memory */
...
...
libavcodec/bitstream_filter.c
View file @
55b9e69a
...
...
@@ -22,6 +22,11 @@
AVBitStreamFilter
*
first_bitstream_filter
=
NULL
;
AVBitStreamFilter
*
av_bitstream_filter_next
(
AVBitStreamFilter
*
f
){
if
(
f
)
return
f
->
next
;
else
return
first_bitstream_filter
;
}
void
av_register_bitstream_filter
(
AVBitStreamFilter
*
bsf
){
bsf
->
next
=
first_bitstream_filter
;
first_bitstream_filter
=
bsf
;
...
...
libavcodec/parser.c
View file @
55b9e69a
...
...
@@ -24,6 +24,11 @@
AVCodecParser
*
av_first_parser
=
NULL
;
AVCodecParser
*
av_parser_next
(
AVCodecParser
*
p
){
if
(
p
)
return
p
->
next
;
else
return
av_first_parser
;
}
void
av_register_codec_parser
(
AVCodecParser
*
parser
)
{
parser
->
next
=
av_first_parser
;
...
...
libavcodec/utils.c
View file @
55b9e69a
...
...
@@ -126,6 +126,11 @@ static void do_free(void)
/* encoder management */
AVCodec
*
first_avcodec
=
NULL
;
AVCodec
*
av_codec_next
(
AVCodec
*
c
){
if
(
c
)
return
c
->
next
;
else
return
first_avcodec
;
}
void
register_avcodec
(
AVCodec
*
format
)
{
AVCodec
**
p
;
...
...
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