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
0be09f54
Commit
0be09f54
authored
Feb 28, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: Add utils test
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
9f9ed79d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Makefile
libavcodec/Makefile
+1
-0
utils.c
libavcodec/utils.c
+20
-0
No files found.
libavcodec/Makefile
View file @
0be09f54
...
@@ -952,6 +952,7 @@ TESTPROGS = imgconvert \
...
@@ -952,6 +952,7 @@ TESTPROGS = imgconvert \
jpeg2000dwt
\
jpeg2000dwt
\
mathops
\
mathops
\
options
\
options
\
utils
\
avfft
\
avfft
\
TESTPROGS-$(CONFIG_CABAC)
+=
cabac
TESTPROGS-$(CONFIG_CABAC)
+=
cabac
...
...
libavcodec/utils.c
View file @
0be09f54
...
@@ -3679,3 +3679,23 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx)
...
@@ -3679,3 +3679,23 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx)
return
props
;
return
props
;
}
}
#ifdef TEST
int
main
(
void
){
avcodec_register_all
();
AVCodec
*
codec
=
NULL
;
int
ret
=
0
;
while
(
codec
=
av_codec_next
(
codec
))
{
if
(
av_codec_is_encoder
(
codec
))
{
if
(
codec
->
type
==
AVMEDIA_TYPE_AUDIO
)
{
if
(
!
codec
->
sample_fmts
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Encoder %s is missing the sample_fmts field
\n
"
,
codec
->
name
);
ret
=
1
;
}
}
}
}
return
ret
;
}
#endif
/* TEST */
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