h264: reset data_partitioning if decoding the slice header for NAL_DPA fails
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 14 Apr 2014 20:55:38 +0000 (16:55 -0400)
commit1147d39bca135df8673031d16989ba486a52172a
treefb42c91d22c7a7d2c079fc65acb784504745f76d
parent30e58e65e543d04d5e52bf188b31abf4dd41a104
h264: reset data_partitioning if decoding the slice header for NAL_DPA fails

If it was set before then we can end up trying to decode a slice without
a valid slice header, which can lead to invalid memory access.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
(cherry picked from commit 58312b2472d3a44d7458865c459d59ef2e02bf1a)
libavcodec/h264.c