mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit 'd12b5b2f13'
* commit 'd12b5b2f13':
build: Split test programs off into separate files
Some conversions done by: James Almer <jamrial@gmail.com>
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
96d616052b
115 changed files with 5686 additions and 4516 deletions
|
|
@ -4172,23 +4172,3 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
int main(void){
|
||||
AVCodec *codec = NULL;
|
||||
int ret = 0;
|
||||
avcodec_register_all();
|
||||
|
||||
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue