Commit 85ff3394 authored by Michael Niedermayer's avatar Michael Niedermayer

Revert "avparser: don't av_malloc(0)."

This hack is no longer needed.

This reverts commit 191e08d1.
parent 5a36783b
...@@ -58,12 +58,10 @@ AVCodecParserContext *av_parser_init(int codec_id) ...@@ -58,12 +58,10 @@ AVCodecParserContext *av_parser_init(int codec_id)
if (!s) if (!s)
return NULL; return NULL;
s->parser = parser; s->parser = parser;
if (parser->priv_data_size) { s->priv_data = av_mallocz(parser->priv_data_size);
s->priv_data = av_mallocz(parser->priv_data_size); if (!s->priv_data) {
if (!s->priv_data) { av_free(s);
av_free(s); return NULL;
return NULL;
}
} }
if (parser->parser_init) { if (parser->parser_init) {
ret = parser->parser_init(s); ret = parser->parser_init(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment