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:
parent
9054a99fea
commit
8adbecc88e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user