h264: on reference overflow, reset the reference count to 0, not 1.