1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/argo_cvg: expose loop/reverb/checksum via metadata

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen 2022-07-24 19:18:15 +10:00
parent 9054a99fea
commit 8adbecc88e
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5

View File

@ -162,6 +162,15 @@ static int argo_cvg_read_header(AVFormatContext *s)
if ((ret = argo_cvg_read_checksum(s->pb, &ctx->header, &ctx->checksum)) < 0)
return ret;
if ((ret = av_dict_set_int(&st->metadata, "loop", ctx->header.loop, 0)) < 0)
return ret;
if ((ret = av_dict_set_int(&st->metadata, "reverb", ctx->header.reverb, 0)) < 0)
return ret;
if ((ret = av_dict_set_int(&st->metadata, "checksum", ctx->checksum, 0)) < 0)
return ret;
par = st->codecpar;
par->codec_type = AVMEDIA_TYPE_AUDIO;
par->codec_id = AV_CODEC_ID_ADPCM_PSX;