h264: rebuild the default ref list if the reference count changes
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:23:17 +0000 (08:23 +0100)
commit9a026c72982faf20e1c8dfbe48f0b312cdea69c8
treeec465d98733766e96602ad11b8f4f4b1fe04772e
parent4736d003fac30af4afd8390182f12f480ad78801
h264: rebuild the default ref list if the reference count changes

Fixes possible access to freed memory.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/h264.c