This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 87bd15dc3c2176ea4708d585a1d278a8fb2c05c0 Author: Michael Niedermayer <[email protected]> AuthorDate: Fri Jun 26 20:58:49 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sun Jun 28 00:22:09 2026 +0000 avcodec/ffv1enc: Reject odd dimensions for bayer Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/ffv1enc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index eb55d3ba32..e6b7506557 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -1016,6 +1016,11 @@ static av_cold int encode_init_internal(AVCodecContext *avctx) if (ret < 0) return ret; + if (s->bayer && (avctx->width & 1 || avctx->height & 1)) { + av_log(avctx, AV_LOG_ERROR, "bayer requires even dimensions\n"); + return AVERROR(EINVAL); + } + if (s->bits_per_raw_sample > (s->version > 3 ? 16 : 8) && !s->remap_mode) { if (s->ac == AC_GOLOMB_RICE) { av_log(avctx, AV_LOG_INFO, _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
