Remove a redundant memset from libavformat.
Originally committed as revision 6250 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a41e9d6899
commit
5894991f94
@ -494,7 +494,7 @@ void avformat_get_context_defaults(AVFormatContext *s){
|
|||||||
AVFormatContext *av_alloc_format_context(void)
|
AVFormatContext *av_alloc_format_context(void)
|
||||||
{
|
{
|
||||||
AVFormatContext *ic;
|
AVFormatContext *ic;
|
||||||
ic = av_mallocz(sizeof(AVFormatContext));
|
ic = av_malloc(sizeof(AVFormatContext));
|
||||||
if (!ic) return ic;
|
if (!ic) return ic;
|
||||||
avformat_get_context_defaults(ic);
|
avformat_get_context_defaults(ic);
|
||||||
ic->av_class = &av_format_context_class;
|
ic->av_class = &av_format_context_class;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user