h264: on reference overflow, reset the reference count to 0, not 1.
commit668e16a0dd1ff56d4beeff5c658d8a2a08dbfac8
authorAnton Khirnov <anton@khirnov.net>
Thu, 14 Feb 2013 10:43:20 +0000 (14 11:43 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 2 Mar 2013 09:27:03 +0000 (2 10:27 +0100)
tree3b08d21e230a1720a3601c6c63c8ea4c773d2139
parente671d3ad6cd7fe1d02e9b35b889a25d8c059fce9
h264: on reference overflow, reset the reference count to 0, not 1.

Since decode_slice_header() returns before the reference lists are
constructed, there are zero valid references.

CC:libav-stable@libav.org
libavcodec/h264.c