On 27/07/15 19:42, Alexandra Hájková wrote:
> ---
> libavformat/asfdec.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> index a73e82e..3f039f1 100644
> --- a/libavformat/asfdec.c
> +++ b/libavformat/asfdec.c
> @@ -255,8 +255,10 @@ static int asf_read_metadata(AVFormatContext *s, const
> char *title, uint16_t len
> AVIOContext *pb = s->pb;
>
> avio_get_str16le(pb, len, ch, buflen);
> - if (av_dict_set(&s->metadata, title, ch, 0) < 0)
> - av_log(s, AV_LOG_WARNING, "av_dict_set failed.\n");
> + if (ch[0]) {
> + if (av_dict_set(&s->metadata, title, ch, 0) < 0)
> + av_log(s, AV_LOG_WARNING, "av_dict_set failed.\n");
> + }
>
> return 0;
> }
>
Probably OK.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel