This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 730737772950b7116d05f7eca51d446ccf29307e Author: James Almer <[email protected]> AuthorDate: Mon Oct 5 18:35:21 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Mon Oct 12 10:36:25 2026 -0300 avformat/jpegmpfenc: stop using deprecated AVStreamGroup fields Signed-off-by: James Almer <[email protected]> --- libavformat/jpegmpfenc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavformat/jpegmpfenc.c b/libavformat/jpegmpfenc.c index 44d2a3b697..7cceb331a7 100644 --- a/libavformat/jpegmpfenc.c +++ b/libavformat/jpegmpfenc.c @@ -132,11 +132,15 @@ static int init_gain_map(AVFormatContext *ctx, const AVStreamGroup *sg) { MPFMuxContext *s = ctx->priv_data; const AVStreamGroupLayeredVideo *lv = sg->params.layered_video; - if (sg->nb_streams != 2 || lv->el_index >= sg->nb_streams) + if (sg->nb_entries != 2 || lv->el_index >= sg->nb_entries) return AVERROR(EINVAL); - const AVStream *bl = sg->streams[!lv->el_index]; - const AVStream *el = sg->streams[lv->el_index]; + if (sg->entries[!lv->el_index]->type != AV_STREAM_GROUP_ENTRY_STREAM || + sg->entries[ lv->el_index]->type != AV_STREAM_GROUP_ENTRY_STREAM) + return AVERROR(EINVAL); + + const AVStream *bl = sg->entries[!lv->el_index]->stream; + const AVStream *el = sg->entries[lv->el_index]->stream; MPFImage *base = &s->images[bl->index]; MPFImage *gain = &s->images[el->index]; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
