avcodec/h264: fix frame skip code