h264: check sps.log2_max_frame_num for validity
authorJanne Grunau <janne-libav@jannau.net>
Sun, 25 Nov 2012 11:56:04 +0000 (12:56 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sat, 12 Jan 2013 16:59:40 +0000 (17:59 +0100)
commitf620c12067a2a80af9fb63927665f82f583e18d7
tree460cff164cb5b92fe0e8f063be0a50d22c7d53ba
parent1d98811b957db3a4c8a3774e85cf8eb07c03c2d4
h264: check sps.log2_max_frame_num for validity

Fixes infinite or long taking loop in frame num gap code in
the fuzzed sample bipbop234.ts_s223302.

CC: libav-stable@libav.org
(cherry picked from commit d7d6efe42b0d2057e67999b96b9a391f533d2333)

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