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>
Wed, 23 May 2012 18:44:45 +0000 (20:44 +0200)
commitc5f7c755cfccd7aa01010a2d566104c2b0fa6d86
tree14814d56a9304d8b806000419efd17ac2190ed23
parentb581580bd1cc8506befa65b0a5c9ae429240f21f
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>
(cherry picked from commit 47132345184dc3d0ff962a57a1225564fe979548)

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