[FFmpeg-devel] [PATCH 10/12] asfdec: don't export empty metadata

Ronald S. Bultje rsbultje
Sat Feb 12 23:00:34 CET 2011


Hi,

On Wed, Feb 9, 2011 at 3:56 PM, Anton Khirnov <anton at khirnov.net> wrote:
> ---
> ?libavformat/asfdec.c | ? ?3 ++-
> ?1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index 0b3b338..a3ac3af 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -169,7 +169,8 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len)
> ? ? ? ? av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key);
> ? ? ? ? goto finish;
> ? ? }
> - ? ?av_metadata_set2(&s->metadata, key, value, 0);
> + ? ?if (*value)
> + ? ? ? ?av_metadata_set2(&s->metadata, key, value, 0);
> ?finish:
> ? ? av_freep(&value);
> ? ? url_fseek(s->pb, off + len, SEEK_SET);
> --
> 1.7.2.3

OK.

Ronald



More information about the ffmpeg-devel mailing list