[FFmpeg-devel] [PATCH v20] avformat/dashdec: add dash demuxer base version

wm4 nfxjfg at googlemail.com
Fri Sep 1 11:33:30 EEST 2017


On Wed, 30 Aug 2017 20:52:40 +0800
Steven Liu <lq at chinaffmpeg.org> wrote:


> +        media_val = xmlGetProp(fragmenturl_node, "media");
> +        if (media_val) {
> +            struct fragment *seg = av_mallocz(sizeof(struct fragment));
> +            if (!seg) {
> +                av_free(media_val);

Most likely you need to use the xmlFree function here (I don't remember
its exact name). Ideally, both functions would map to free(), but
that's not necessarily the case, which could cause problems. Also, on
Windows, both libs could be linked to different CRT libs, which would
also mean their malloc/free are incompatible.

Sorry if my comment on the last patches was misleading.


More information about the ffmpeg-devel mailing list