This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0f3e1bf4fe189e82d79125e5ce8d5f8746bc2c8e Author: Andreas Rheinhardt <[email protected]> AuthorDate: Thu Aug 13 18:23:25 2026 +0200 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Fri Aug 14 18:28:09 2026 +0200 avcodec/tests/avcodec: Test reconf callback, flags Reviewed-by: James Almer <[email protected]> Reviewed-by: Kacper Michajłow <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavcodec/tests/avcodec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c index c9afec4eb6..a24c21c421 100644 --- a/libavcodec/tests/avcodec.c +++ b/libavcodec/tests/avcodec.c @@ -174,6 +174,8 @@ int main(void){ ERR("Encoder %s is both subtitle encoder and not subtitle encoder."); if (codec2->update_thread_context || codec2->update_thread_context_for_user || codec2->bsfs) ERR("Encoder %s has decoder-only thread functions or bsf.\n"); + if (codec2->reconf && !(codec->capabilities & AV_CODEC_CAP_ENCODER_RECONF)) + ERR("Encoder %s has reconf callback without supporting recondiguration.\n"); if (codec->type == AVMEDIA_TYPE_AUDIO) { if (!codec2->sample_fmts) { av_log(NULL, AV_LOG_FATAL, "Encoder %s is missing the sample_fmts field\n", codec->name); @@ -216,7 +218,9 @@ int main(void){ if (codec->capabilities & (AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_VARIABLE_FRAME_SIZE | AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE | - AV_CODEC_CAP_ENCODER_FLUSH)) + AV_CODEC_CAP_ENCODER_FLUSH | + AV_CODEC_CAP_ENCODER_RECONF | + AV_CODEC_CAP_ENCODER_RECON_FRAME)) ERR("Decoder %s has encoder-only capabilities\n"); if (codec2->cb_type != FF_CODEC_CB_TYPE_DECODE && codec2->caps_internal & FF_CODEC_CAP_SETS_PKT_DTS) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
