[FFmpeg-cvslog] avformat/argo_cvg: expose loop/reverb/checksum via metadata

Zane van Iperen git at videolan.org
Sun Jul 24 12:27:14 EEST 2022


ffmpeg | branch: master | Zane van Iperen <zane at zanevaniperen.com> | Sun Jul 24 19:18:15 2022 +1000| [8adbecc88e5d18e1a11a4b0bdfbae94c12640a01] | committer: Zane van Iperen

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

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
Signed-off-by: Zane van Iperen <zane at zanevaniperen.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8adbecc88e5d18e1a11a4b0bdfbae94c12640a01
---

 libavformat/argo_cvg.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
index 12465dcbcc..edf75c905e 100644
--- a/libavformat/argo_cvg.c
+++ b/libavformat/argo_cvg.c
@@ -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;



More information about the ffmpeg-cvslog mailing list