h264: init prev_frame_num to -1 on init