Zane van Iperen:
> Signed-off-by: Zane van Iperen <z...@zanevaniperen.com>
> ---
>  libavformat/argo_cvg.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
> index 12465dcbcc..3d4abb4758 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 (av_dict_set_int(&st->metadata, "loop", ctx->header.loop, 0) < 0)
> +        return AVERROR(ENOMEM);
> +
> +    if (av_dict_set_int(&st->metadata, "reverb", ctx->header.reverb, 0) < 0)
> +        return AVERROR(ENOMEM);
> +
> +    if (av_dict_set_int(&st->metadata, "checksum", ctx->checksum, 0) < 0)
> +        return AVERROR(ENOMEM);
> +
>      par                         = st->codecpar;
>      par->codec_type             = AVMEDIA_TYPE_AUDIO;
>      par->codec_id               = AV_CODEC_ID_ADPCM_PSX;

Don't second-guess error codes (unless you have a good reason to).

- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to