Commit 0be09f54 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec: Add utils test

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9f9ed79d
......@@ -952,6 +952,7 @@ TESTPROGS = imgconvert \
jpeg2000dwt \
mathops \
options \
utils \
avfft \
TESTPROGS-$(CONFIG_CABAC) += cabac
......
......@@ -3679,3 +3679,23 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx)
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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment