h264: Check that the codec isn't null before accessing it
authorMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 11:27:10 +0000 (14:27 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 28 Aug 2012 15:15:38 +0000 (18:15 +0300)
commit6f5b1a2ba4cc568b3b8ae11b7dfd4a70fb891680
tree7f44d5052fbba68200f22cbbc3099a8f5f07825b
parent0b58c77ed18ae1c0b47e4f25e43550dfc48da0e1
h264: Check that the codec isn't null before accessing it

This fixes crashes introduced by 2e8f3cbcda5, the codec can be null
when called from parsers.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264.c