mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avformat/jpegmpfenc: stop using deprecated AVStreamGroup fields
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
1 parent
d99629eaa4
commit
7307377729
1 file changed
+7
-3
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user