提交 2824c473 编写于 作者: P Philip Gladstone

Remove some calls to av_free that tured out to be duplicate. This improves

the behaviour of ffserver streaming asf files from disk.

Originally committed as revision 662 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 dd536160
...@@ -426,7 +426,7 @@ static int asf_write_header(AVFormatContext *s) ...@@ -426,7 +426,7 @@ static int asf_write_header(AVFormatContext *s)
asf->nb_packets = 0; asf->nb_packets = 0;
if (asf_write_header1(s, 0, 50) < 0) { if (asf_write_header1(s, 0, 50) < 0) {
av_free(asf); //av_free(asf);
return -1; return -1;
} }
...@@ -885,7 +885,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -885,7 +885,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_free(st->priv_data); av_free(st->priv_data);
av_free(st); av_free(st);
} }
av_free(asf); //av_free(asf);
return -1; return -1;
} }
...@@ -1024,7 +1024,7 @@ static int asf_read_close(AVFormatContext *s) ...@@ -1024,7 +1024,7 @@ static int asf_read_close(AVFormatContext *s)
AVStream *st = s->streams[i]; AVStream *st = s->streams[i];
av_free(st->priv_data); av_free(st->priv_data);
} }
av_free(asf); //av_free(asf);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册