h264: Add check for invalid chroma_format_idc
authorAlexander Strange <astrange@ithinksw.com>
Sat, 24 Mar 2012 21:32:14 +0000 (17:32 -0400)
committerReinhard Tartler <siretart@tauware.de>
Tue, 22 May 2012 19:57:38 +0000 (21:57 +0200)
commit47132345184dc3d0ff962a57a1225564fe979548
treebd695fec88cce0eb62565da08597a33574210310
parent58361100188a1f80bcd9b6c58a4ce588032da1ad
h264: Add check for invalid chroma_format_idc

Fixes a crash when FF_DEBUG_PICT_INFO is used.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 6ef4063957aa5025c8d2cd757b6a537e4b6874df)

Fixes: CVE-2012-0851

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/h264_ps.c