On Wed, Apr 3, 2019 at 3:26 PM Jun Zhao <mypopy...@gmail.com> wrote:
>
> From: Jun Zhao <barryjz...@tencent.com>
>
> fix the example can't dump FLV metadata.
>
> Signed-off-by: Jun Zhao <barryjz...@tencent.com>
> ---
>  doc/examples/metadata.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c
> index e330d07..b6cfa6b 100644
> --- a/doc/examples/metadata.c
> +++ b/doc/examples/metadata.c
> @@ -47,6 +47,11 @@ int main (int argc, char **argv)
>      if ((ret = avformat_open_input(&fmt_ctx, argv[1], NULL, NULL)))
>          return ret;
>
> +    if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0) {
> +        av_log(NULL, AV_LOG_ERROR, "Cannot find stream information\n");
> +        return ret;
> +    }
> +
>      while ((tag = av_dict_get(fmt_ctx->metadata, "", tag, 
> AV_DICT_IGNORE_SUFFIX)))
>          printf("%s=%s\n", tag->key, tag->value);
>
> --
> 1.7.1
>
Pused, Thanks
_______________________________________________
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