av_log: don't crash if called with NULL AVClass
commit54d0763b92f3d8239aa2258f2193eebdc74a91ef
authorUoti Urpala <uau@mplayer2.org>
Sun, 14 Aug 2011 23:58:51 +0000 (15 02:58 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 14 Aug 2011 23:58:51 +0000 (15 02:58 +0300)
tree35fe0ba651c7b37549fd5b085f0c676aa78f1698
parent9e6933440ae59c523fce85b64d6f52f444910003
av_log: don't crash if called with NULL AVClass

At least libavformat mpegts demuxer may give bad parameters with NULL
AVClass to the av_log callback. Check for this and print a warning
instead of crashing.
av_log.c