lavf: Avoid using av_malloc(0) in av_dump_format
authorMartin Storsjö <martin@martin.st>
Fri, 30 Sep 2011 17:30:35 +0000 (20:30 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:57:04 +0000 (20:57 +0200)
commit932b5f3cbb22b9357d60914f85675020041299e0
tree04aee3676408d1e34eeea116bf757f768f41be9f
parentb8ab1adfcdb1f87e3e26425b4499046352009f29
lavf: Avoid using av_malloc(0) in av_dump_format

On OS X, av_malloc(0) returns pointers that cause crashes when
freed.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit e81e5e8ad2bb5746df0c343c396019aca165cf66)
libavformat/utils.c